X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=man%2Fsystemd.time.xml;h=2e64089c2957e48cd0fcf7d0204a1c2adf89781b;hp=4f6dd0f0865f34e9f681be3b68ecb0f235212445;hb=b9be39bfb4ed8e43a7c445831131e44be998eb32;hpb=05cc726731c5cec952722f1c14acb08e3d4d5e98 diff --git a/man/systemd.time.xml b/man/systemd.time.xml index 4f6dd0f08..2e64089c2 100644 --- a/man/systemd.time.xml +++ b/man/systemd.time.xml @@ -127,7 +127,7 @@ but when the weekday is specified it must either be in the abbreviated (Wed) or non-abbreviated (Wednesday) English - language form (case doesn't matter), and is not + language form (case does not matter), and is not subject to the locale choice of the user. Either the date, or the time part may be omitted, in which case the current date or 00:00:00, resp., is assumed. The @@ -153,14 +153,19 @@ When parsing, systemd will also accept relative time specifications. A time span (see above) that is prefixed with + is evaluated to the - current time plus the specified - time span. Correspondingly, a time span that is prefixed + current time plus the specified time + span. Correspondingly, a time span that is prefixed with - is evaluated to the current time minus the specified time span. Instead of - prefixing the time span with - it - may also be suffixed with a space and the word + prefixing the time span with + or + -, it may also be suffixed with a + space and the word left or ago. + Finally, a timespan prefixed with + @ is evaluated relative to the UNIX + time epoch 1st Jan, 1970, 00:00. + Examples for valid timestamps and their normalized form (assuming the current time was 2012-11-23 18:15:22): @@ -177,7 +182,8 @@ tomorrow → Fri 2012-11-24 00:00:00 +3h30min → Fri 2012-11-23 21:45:22 -5s → Fri 2012-11-23 18:15:17 - 11min ago → Fri 2012-11-23 18:04:22 + 11min ago → Fri 2012-11-23 18:04:22 + @1395716396 → Tue 2014-03-25 03:59:56 Note that timestamps printed by systemd will not be parsed correctly by systemd, as the timezone @@ -207,8 +213,8 @@ Thu,Fri 2012-*-1,5 11:12:13 The above refers to 11:12:13 of the first or - fifth day of any month of the year 2012, given that it - is a Thursday or Friday. + fifth day of any month of the year 2012, but only if that + day is a Thursday or Friday. The weekday specification is optional. If specified, it should consist of one or more English @@ -222,7 +228,7 @@ In the date and time specifications, any component may be specified as * in which case any value will match. Alternatively, each - component can be specified as list of values separated + component can be specified as a list of values separated by commas. Values may also be suffixed with / and a repetition value, which indicates that the value and all values plus multiples @@ -231,18 +237,27 @@ Either time or date specification may be omitted, in which case the current day and 00:00:00 is implied, respectively. If the second component is not - specified :00 is assumed. + specified, :00 is assumed. Timezone names may not be specified. The special expressions + minutely, hourly, daily, - monthly and weekly - may be used as calendar events which refer to - *-*-* *:00:00, *-*-* - 00:00:00, *-*-01 00:00:00 and - Mon *-*-* 00:00:00, - respectively. + monthly, weekly, + yearly, + quarterly, + semiannually may be used as + calendar events which refer to + *-*-* *:*:00, + *-*-* *:00:00, + *-*-* 00:00:00, + *-*-01 00:00:00, + Mon *-*-* 00:00:00, + *-01-01 00:00:00, + *-01,04,07,10-01 00:00:0 and + *-01,07-01 00:00:00 respectively. + Examples for valid timestamps and their normalized form: @@ -271,6 +286,8 @@ Wed-Sat,Tue 12-10-15 1:2:3 → Tue-Sat 2012-10-15 01:02:03 daily → *-*-* 00:00:00 monthly → *-*-01 00:00:00 weekly → Mon *-*-* 00:00:00 + yearly → *-01-01 00:00:00 + annually → *-01-01 00:00:00 *:2/3 → *-*-* *:02/3:00 Calendar events are used by timer units, see