[Nix-dev] Set date/time manually

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


sorry, I meant to write `sudo date +%Y%m%d -s "20180210`.

Eike <eike at eknet.org> writes:

> 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
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list