start-at format doesn't work in V0.9.7,but V0.9.6 is OK
In centos: V0.9.6 [root@10-8-7-151 ~]# cat /etc/redhat-release CentOS release 6.5 (Final)
[root@10-8-7-151 ~]# /usr/local/bin/faketime --version
/usr/local/bin/faketime: Version 0.9.6 For usage information please use '/usr/local/bin/faketime --help'.
[root@10-8-7-151 ~]# /usr/local/bin/faketime -f '@2001-02-03 04:05:06' /bin/bash -c 'while [ $SECONDS -lt 6 ]; do date; sleep 1; done' Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:07 CST 2001 Sat Feb 3 04:05:08 CST 2001 Sat Feb 3 04:05:09 CST 2001 Sat Feb 3 04:05:10 CST 2001 Sat Feb 3 04:05:11 CST 2001
V0.9.7 [root@10-8-7-151 ~]# cat /etc/redhat-release CentOS release 6.5 (Final)
[root@10-8-7-151 libfaketime]# /usr/local/bin/faketime --version
/usr/local/bin/faketime: Version 0.9.7 For usage information please use '/usr/local/bin/faketime --help'. [root@10-8-7-151 libfaketime]# /usr/local/bin/faketime -f '@2001-02-03 04:05:06' /bin/bash -c 'while [ $SECONDS -lt 6 ]; do date; sleep 1; done' Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001
In ubuntu: V0.9.6 root@instance-64b59110:~# uname -a Linux instance-64b59110 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@instance-64b59110:~# faketime --version
faketime: Version 0.9.6 For usage information please use 'faketime --help'.
root@instance-64b59110:~# faketime -f '@2001-02-03 04:05:06' /bin/bash -c 'while [ $SECONDS -lt 6 ]; do date; sleep 1; done' Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:07 CST 2001 Sat Feb 3 04:05:08 CST 2001 Sat Feb 3 04:05:09 CST 2001 Sat Feb 3 04:05:10 CST 2001 Sat Feb 3 04:05:11 CST 2001
V0.9.7 root@instance-64b59110:~# uname -a Linux instance-64b59110 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@instance-64b59110:/libfaketime/src# /usr/local/bin/faketime --version
/usr/local/bin/faketime: Version 0.9.7 For usage information please use '/usr/local/bin/faketime --help'.
root@instance-64b59110:/libfaketime/src# /usr/local/bin/faketime -f '@2001-02-03 04:05:06' /bin/bash -c 'while [ $SECONDS -lt 6 ]; do date; sleep 1; done' Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001 Sat Feb 3 04:05:06 CST 2001
With d5c00506844220a8cc0d709420c48d1bf1567660 you can set the environment variable FAKETIME_DONT_RESET=1 to enable that old behavior.