| System Functions |
|
| Formats |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Returns | Formatted date (converted from Julian). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description | The
DTE( ) function converts a date (and
time) from Julian form to a formatted string. fmt$
defines the format to be returned, in which each
component of the date is represented by percent sign (%)
followed by a one- or two-letter
code. The first letter indicates a source for the data
(day, month, year etc.). The second character (if
specified) indicates how to format the returned value.
The chart below shows the results of the various format
options:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The %k value (milliseconds) is a +PxPlus Exclusive |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In general, when the second character isl (lowercase L), the result is long text format an s indicates short text format. ProvideX maintains the exact contents of the text internally. The contents can be changed using a DEF DTE( ) directive. If the second letter is z, ProvideX supplies the value converted to a two digit value. ProvideX returns a 1-byte binary value if the second letter is p (for compatibility with other languages). The format can also contain YYYY, YY, MM, and DD (e.g., "YYYY/MM/DD") for current Long Year, Year, Month and Day values:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| If you include any other characters in the date format (e.g., punctuation: slashes, spaces, etc.) ProvideX copies them, as literals, to the output. To include a percent sign as a literal in the output, use %%in the format. ProvideX includes the DTE("%A") format to deal with legacy application Y2K conversions (Version 4.10). The current year is returned using 00-99 for 1900 through 1999, A0-A9 for 2000 through 2009, B0-B9 for 2010 through 2019, etc. ProvideX supports fractional values in the DTE( ) function, using the DTE(fraction,*:"form") format. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Examples |
The DTE( ) function will support a valid DAY formatted string value; e.g.,
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| See Also | DAY_FORMAT Directive, DAY System Variable JUL( ) Return Julian Date, DEF CVS/DTE/LCS/UCS Directives. 'BY'= System Parameter |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||