seconds man page on Plan9

Printed from http://www.polarhome.com/service/man/?qf=seconds&af=0&tf=2&of=Plan9

SECONDS(1)							    SECONDS(1)

NAME
       seconds - convert human-readable date (and time) to seconds since epoch

SYNOPSIS
       seconds date ...

DESCRIPTION
       Seconds	prints the number of seconds since 1 Jan 1970 corresponding to
       one or more human-readable dates.  Each date must be one	 argument;  it
       will usually be necessary to enclose it in quotes.

       Seconds	accepts	 a somewhat wider range of input than just output from
       date(1).	 The main requirement is that the date must  be	 fully	speci‐
       fied, with a day of month, month and year in any order.	The month must
       be an English name (or abbreviation), not a number, and the  year  must
       contain	4  digits.   Unambiguous time-zone names are understood (i.e.,
       not or time zones may be written as ±hhmm.  Case is ignored.

EXAMPLES
       Print the names of all files under modified since the start of  23  May
       2011.

	      du -ta | awk '$1 >= '^`{seconds '23 may 2011'}^' {print $2}'

SEE ALSO
       date(1), du(1), mtime(1), ctime(2)

BUGS
       All-numeric dates, popular in the USA, are simply ambiguous, more so if
       the year is truncated to 2 digits.

								    SECONDS(1)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net