Date: Mon, 30 Apr 2018 05:36:42 -0400 From: Aryeh Friedman <aryeh.friedman@gmail.com> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Quickly and repeated adjusting system time Message-ID: <CAGBxaXm%2B_K_ViM1cQL30RutEyr-iOgshmeqnz1vZ%2B7Ly5zYypQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaXm%2B_K_ViM1cQL30RutEyr-iOgshmeqnz1vZ%2B7Ly5zYypQ>