tcl.date

Verb: Access/TCL, Releases: R83 3.1 and AP

Converts dates to various formats.

Syntax

date {date.parameter} {(options}

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)

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 )

See Also

Command Name Type Description
basic.oconv Function Output conversion function.
basic.iconv Function Input conversion function.
pc.d Processing Code Date conversion.
tcl.time Verb: Access Displays time and date.
basic.timedate Function Returns time and date.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.