@@ -313,6 +313,18 @@ Print the log messages on for the 5 minute period ending 1 minute ago
313313s4 /var/log -a=@-5m -b=-1m
314314```
315315
316+ Print the log messages after 12:05 today and before 12:15 today
317+
318+ ``` lang-text
319+ s4 /var/log -a 12:05 -b=@+10m
320+ ```
321+
322+ Print the log messages on the day of January 1 this year
323+
324+ ``` lang-text
325+ s4 /var/log -a 01-01 -b=@+1d
326+ ```
327+
316328Print the record-keeping log messages from up to a day ago
317329(with the help of ` find ` )
318330
@@ -519,12 +531,21 @@ DateTime Filters may be strftime specifier patterns:
519531 "%Y%m%d"
520532 "%Y-%m-%d"
521533 "%Y/%m/%d"
534+ "%m-%d"
522535 "%H:%M:%S"
523536 "%H:%M"
524537 "+%s"
525- Each trailing * is an optional trailing 3-digit fractional sub-seconds,
526- or 6-digit fractional sub-seconds, and/or timezone.
527-
538+ Each trailing * is an optional trailing 3-digit fractional sub-seconds (milliseconds, ".%3f"),
539+ or 6-digit fractional sub-seconds (microseconds, ".%6f"),
540+ and/or timezone ("%z", "%:z", "%::z", or "%Z").
541+ Patterns "%Y" is a 4-digit year, "%m" is a 2-digit month, "%d" is a 2-digit day of month,
542+ "%H" is a 2-digit hour, "%M" is a 2-digit minute, "%S" is a 2-digit second,
543+ ".%3f" is a 3-digit fractional sub-second (milliseconds),
544+ ".%6f" is a 6-digit fractional sub-second (microseconds),
545+ "%z" is a timezone offset in format "+0900" or "-0900",
546+ "%:z" is a timezone offset in format "+09:00" or "-09:00",
547+ "%::z" is a timezone offset in format "+09:00:00" or "-09:00:00",
548+ "%Z" is a named timezone, e.g. "UTC", "JST", etc.
528549Pattern "+%s" is Unix epoch timestamp in seconds with a preceding "+".
529550For example, value "+946684800" is January 1, 2000 at 00:00, GMT.
530551
0 commit comments