Additions:
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
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
date
Date
date with optional + format
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