Plan 9 from Bell Labs’s /usr/web/sources/contrib/arisawa/cdate/README

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


cdate: convert date format
usage: cdate [-n] date
usage: cdate -k key1,key2,... [file]
key1,key2,... are fields that begin with 0

term% cdate 1108355437
2005/02/14 13:30:37
term% cdate -n 2005/02/14 13:30:37
1108355437
term% cdate Jan  8 03:09
2005/01/08 03:09:00
term% cdate -n Jan  8 03:09
1105121340
term* cdate Jul 19  2002
2002/07/19 00:00:00

term% cat plan9.log
...
1108398646 4 c sys/src/cmd/cc/lex.c - 664 sys sys 1108397267 23807
1108441856 0 c 386/bin/8c - 775 sys sys 1108440451 357989
...
term% cdate -k0,8 plan9.log
...
2005/02/15 01:30:46 4 c sys/src/cmd/cc/lex.c - 664 sys sys 2005/02/15 01:07:47 23807
2005/02/15 13:30:56 0 c 386/bin/8c - 775 sys sys 2005/02/15 13:07:31 357989
...

kenji Arisawa

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.