# HG changeset patch # User superdump # Date 1234130634 0 # Node ID 14797a347fcbb0c8af0d94b4b2e9d3931100e067 # Parent 24d2dfc9086de901deec86242aa9bd343d5afd46 Add the ability to set the timestamp to the current time by specifying 'now' as the time Patch by Francesco Cosoleto ( cosoleto gmail com ) diff -r 24d2dfc9086d -r 14797a347fcb utils.c --- a/utils.c Sun Feb 08 21:42:06 2009 +0000 +++ b/utils.c Sun Feb 08 22:03:54 2009 +0000 @@ -2908,6 +2908,9 @@ p = datestr; q = NULL; if (!duration) { + if (!strncasecmp(datestr, "now", len)) + return (int64_t) now * 1000000; + /* parse the year-month-day part */ for (i = 0; i < FF_ARRAY_ELEMS(date_fmt); i++) { q = small_strptime(p, date_fmt[i], &dt);