summaryrefslogtreecommitdiff
path: root/snooze.c
AgeCommit message (Collapse)Author
2020-12-23Change timefile calculations to respect slackfix-slack-issueHendrik Jäger
% touch -t $(date -d '7 days ago' +%Y%m%d0000) somefile % ls -l somefile -rw-r--r-- 1 henk henk 0 Dez 16 00:00 somefile Before this change: % /usr/bin/snooze -nv -s 30d -H 5 -t somefile -T 30m 2020-12-23T05:00:00+0100 Wed 0d 4h 32m 24s 2020-12-24T05:00:00+0100 Thu 1d 4h 32m 24s 2020-12-25T05:00:00+0100 Fri 2d 4h 32m 24s 2020-12-26T05:00:00+0100 Sat 3d 4h 32m 24s 2020-12-27T05:00:00+0100 Sun 4d 4h 32m 24s After this change: % ./snooze -nv -s 30d -H 5 -t somefile -T 30m 2020-12-16T05:00:00+0100 Wed -6d-19h-27m-43s 2020-12-17T05:00:00+0100 Thu -5d-19h-27m-43s 2020-12-18T05:00:00+0100 Fri -4d-19h-27m-43s 2020-12-19T05:00:00+0100 Sat -3d-19h-27m-43s 2020-12-20T05:00:00+0100 Sun -2d-19h-27m-43s
2020-12-11fix verbose output when no command is passedLeah Neukirchen
2020-10-04Add option for jitter, fix wording of randdelayAndrew Benson
2018-05-05force stdout line-buffered, as output comes very slowlyLeah Neukirchen
Fixes #3.
2018-05-03unset tm_isdst before doing date operationsv0.3Leah Neukirchen
Else mktime(3) can change tm_hour due to DST change.
2018-05-03more off-by-ones :(Leah Neukirchen
2017-08-31styleLeah Neukirchen
2017-08-29knf, fix whitespaceLeah Neukirchen
2017-08-29fix dayofyear and weekofyear properlyv0.2Leah Neukirchen
2017-08-29fix weekofyear parsingLeah Neukirchen
-W0 is still allowed, but never matches...
2017-08-29parse: always treat plain / as *, even if 0 is not a legal valueLeah Neukirchen
2017-08-29find_next: take leap year into account (e.g. when using dayofyear)Leah Neukirchen
2017-08-29leahizeLeah Neukirchen
2017-08-29use getopt with + hack to not reorder argv in glibcLeah Neukirchen
2016-01-02fix -n with rare eventsChristian Neukirchen
2016-01-02off-by-one in weekofyearChristian Neukirchen
2015-11-06Reschedule when time moved backwardsChristian Neukirchen
2015-11-04Off-by-one, else snooze -s 1d -t triggers when the file has been touched on ↵Christian Neukirchen
00:00:00...
2015-11-04Print duration and day of week with -nChristian Neukirchen
2015-11-04duration parsingChristian Neukirchen
2015-11-04Take slack into account when using -t without -TChristian Neukirchen
2015-11-04Log starting time with -vChristian Neukirchen
2015-11-04initial commit of snoozeChristian Neukirchen