[Nix-dev] Set date/time manually

Eike eike at eknet.org
Wed Jun 15 16:34:53 CEST 2016


Hello NixOS experts,

I want to test applications if they would work some time in the future
and so I thought to change the date using timedatectl. But it says that
it is not possible to use it on NixOS. The date command also doesn't
seem to work: the date/time is not changed after doing for example `sudo
date +%Y%m%d "20180210"`.

How can I temporarily set the system time some value?

Thanks for your advice
Eike


More information about the nix-dev mailing list