tcl.date Verb: Access/TCL

tcl.date

Command tcl.date Verb: Access/TCL
Applicable release versions: R83 3.1, AP
Category TCL (746)
Description returns an internal, external, or julian date derived from a date provided, or displays a calendar for the month and year of the date provided.

Displays the date given in "date.parameter" in external, internal, and Julian formats.

"date.parameter" is the date to convert and display. It may be in external, internal, or Julian date format. If it is not provided, the current system date is the default date.

The (C) option displays a calendar. The operator is then given the choices:
D = Previous Month (same year)
F = Next Month (same year)
X = Exit
Y = Previous Year (same month)
U = Next Year (same month)
Syntax date {date.parameter} {(options}
Options c Produces a calendar of the month containing the given date.

j Indicates that the "date.parameter" is a Julian number.

n When used with the "c" option, displays calendar only and does not prompt for additional options.
Example
date
February 22, 1992; Saturday  internal: 8819  julian: 53

date 1/1/2000
January 1, 2000; Saturday  internal: 11689  julian: 1

date 10000
May 18, 1995; Thursday  internal: 10000  julian: 138

date 1/16/97 (c)
January 16, 1997; Thursday  internal: 10609  julian: 16
+----------------------------------+
|  January         1997            |
|SUN |MON |TUE |WED |THU |FRI |SAT | 
|    |    |    |  1 |  2 |  3 |  4 |
|  5 |  6 |  7 |  8 |  9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 |    |
|    |    |    |    |    |    |    |
+----------------------------------+ 

(D=Prev Month, F=Next Month, X=Exit)
(Y=Prev Year,  U=Next Year         )
Purpose
Related basic.oconv
basic.iconv
pc.d
tcl.time
basic.timedate