Open Source Desktop Environment : BashDate

HomePage :: Categories :: PageIndex :: RecentChanges
Search this site: OSDE.INFO is produced by "osde8info" :

Revision [965]

Most recent edit made on 2008-04-17 16:12:14 by OsdeInfo

Additions:

REFERRERS
ShellCommands




Revision [963]

Edited on 2008-04-17 12:05:41 by OsdeInfo

Additions:
you can optionally choose ISO 8601 format with or without hours, mins and seconds


Deletions:
you can optionally choose ISO 8601 with or without hours, mins and seconds




Revision [962]

Edited on 2008-04-17 12:05:12 by OsdeInfo

Additions:
date
date
filenames
this can be useful for creating filenames in batch files
file modification date (-r)
you can optionally choose ISO 8601 with or without hours, mins and seconds


Deletions:
Date
this can be very useful in batch files
$ date --iso-8601=hours -r x.x
2008-04-07T10+0100




Revision [961]

The oldest known version of this page was edited on 2008-04-17 11:45:40 by OsdeInfo

date


Date
date with optional + format
$ date +"%a %X"


this can be very useful in batch files
#!/bin/sh
file=$(date +%y%m%d).dat
tar cvzf $file.tgz $file


$ date --iso-8601 -r x.x
2008-04-07

$ date --iso-8601=hours -r x.x
2008-04-07T10+0100

$ date --iso-8601=minutes -r x.x
2008-04-07T10:02+0100

$ date --iso-8601=seconds -r x.x
2008-04-07T10:02:56+0100

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.1142 seconds