From owner-freebsd-questions@freebsd.org Mon Apr 30 09:36:44 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9739BFC95E0 for ; Mon, 30 Apr 2018 09:36:44 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-ot0-x233.google.com (mail-ot0-x233.google.com [IPv6:2607:f8b0:4003:c0f::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2050E6B385 for ; Mon, 30 Apr 2018 09:36:44 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-ot0-x233.google.com with SMTP id t1-v6so8778360ott.13 for ; Mon, 30 Apr 2018 02:36:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=HmLAZE/EUeK8LQBMhg8iH0zw08zr0vyX5U5+dwisKE8=; b=Nt1LK7b6D6fKl8U3QwZcaVLHSMMXccaTdjzDOMAZk13ZAPOSZAMgSxL8w6F7FyRYrq clak4Zp2RMOnhx+SONS3OGcKtQxqtirFw3af0UOUVC40ZaHZ5DxzkfeUCF4rywzYkUIw kVSuC8eAxfAYV7wMEPu1e+HBouSUH0vDfdADg8cnowIwIeN7xr/PXrgW9uwr8poyOJgq I5y0jEmFz1TS+Cxb+iwKw/jLjGkjbZaicxouwC5C0/2TKYbsO1+B5SF5jX/jA44oapYh 6cTuIyIVJvrv6UrORS/tfIxzOFHBGB6SF+0FNFObu/jC/ZGxTabjqcHgTerMUWdHKjt0 pagg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=HmLAZE/EUeK8LQBMhg8iH0zw08zr0vyX5U5+dwisKE8=; b=Eaydq+L5FNC476/YleGNzIGp2sI+DiNx9lUbWpe4Kn6YbCEGN0md1gXA4PYkoqc+iB YbZYwSPfgUo5BcjbHIDuaj7hUsaXNs+bEwiccOXo/rUXZHF+YB/aKdbDyMdLZExRVomx DGlkSE21vybpDacqn42HH5W4L0cuICxCSNpKd0x8b51c95D9ELy8m3UnWWQiL7B1+bfc xuLexpninACGHMH1EFGhWEmoNhSpSPfO2TX97AAQM8GjsgKIG7eC4xrtHZgguNt/f1jD XeaQMAzIxbGVC0H0fmKCaYM+4cLYEmjK4a0dnXfNteDqGkj5KhFOfZupqE2loJaxQfHi mgWA== X-Gm-Message-State: ALQs6tB53BAZ+Kr+k9Ymu6mGRBT9xXumFtBQ3WlJ2DGUOmj/dTl/DvOu hj2Avwo4X4x2e8cedB+ACbudtRP6WlmC4HjuVIE= X-Google-Smtp-Source: AB8JxZoexTyrRQtSgLGNWxhvN9m1QvHtJudU7nX3resFjyXX7weMGONlDhhxA9cmXJT7pHkca50Z/VPkTFIzrvTMfZ4= X-Received: by 2002:a9d:55cc:: with SMTP id z12-v6mr8158947oti.378.1525081003483; Mon, 30 Apr 2018 02:36:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.155.83 with HTTP; Mon, 30 Apr 2018 02:36:42 -0700 (PDT) From: Aryeh Friedman Date: Mon, 30 Apr 2018 05:36:42 -0400 Message-ID: Subject: Quickly and repeated adjusting system time To: FreeBSD Mailing List Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 09:36:44 -0000 I have a program that fires events of at specific periodic (time of day, day of month, etc.) events and I need to test it's ability to correctly fire the events at the correct times. Thus I need a quick (and hopefully programmatic) way to set the system clock to an arbitary time (no need to mess with timezones). I know I can use date(1) but my gut says there has to be better way... Ideas? -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org