days
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 19 October 2008
Index
Return to Main Contents
NAME
days - print days since January 1st of a given date
SYNOPSIS
edrc/lib/days
[
-h
]
days
[
MM/DD/YYYYY
|
YYYYY-MM-DD
]
AVAILABILITY
WA2L/edrc
DESCRIPTION
Evaluate days since January 1st of a given date.
If no date is specified the number of days from January 1st until the
current date is printed (this equals to
date +%j
on HP-UX systems).
OPTIONS
- -h
-
usage message.
- MM/DD/YYYYY
-
date in the format "Month/Day/Year".
- YYYYY-MM-DD
-
date in the format "Year/Month/Day".
ENVIRONMENT
- $TZ
-
time zone.
EXIT STATUS
- 0
-
no error.
- 4
-
usage displayed.
FILES
-
EXAMPLES
- 1) print days since January 1st 1971 for January 28th 1971
-
[ /home/mzv7t0 ]
[ mzv7t0@rh7mzv7t001 ][ksh]: days 01/28/1971
028
- 2) print days since January 1st 1980 for March 1st 1980 (this is leap year)
-
[ /home/mzv7t0 ]
[ mzv7t0@rh7mzv7t001 ][ksh]: days 03/01/1980
061
- 3) print days since January 1st 1981 for March 1st 1980
-
[ /home/mzv7t0 ]
[ mzv7t0@rh7mzv7t001 ][ksh]: days 03/01/1981
060
SEE ALSO
edrcintro(1),
date(1),
is_weekend(3),
seconds(3),
timer(1)
NOTES
-
BUGS
-
AUTHOR
days was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2008
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:52:43 GMT, August 28, 2024