Previous Page | Next Page

Formats

$N8601EHw.d Format



Writes ISO 8601 duration, datetime, and interval forms using the extended notations Pyyyy-mm-ddThh:mm:ss and yyyy-mm-ddThh:mm:ss, using a hyphen ( - ) for omitted components.
Category: Date and Time
ISO 8601
Time Zone Format: No
ISO 8601 Element: 5.4.4 Complete representation

Syntax
Syntax Description
Details
Examples
See Also

Syntax

$N8601EHw.d


Syntax Description

w

specifies the width of the output field.

Default: 50
Range: 1 - 200
Requirement: The minimum length for a duration value or a datetime value is 16. The minimum length for an interval value is 16.
d

specifies the number of digits to the right of the lowest order component. This argument is optional.

Default: 0
Range: 0 - 3

Details

The $N8601H format writes ISO 8601 duration, datetime, and interval values as character data, using a hyphen ( - ) to represent omitted components, for the following extended notations:

Pyyyy-mm-ddThh:mm:ss

yyyy-mm-ddThh:mm:ss

Pyyyy-mm-ddThh:mm:ss/yyyy-mm-ddThh:mm:ss

yyyy-mm-ddThh:mm:ss/Pyyyy-mm-ddThh:mm:ss

yyyy-mm-ddThh:mm:ss/yyyy-mm-ddThh:mm:ss

Omitted datetime components are always displayed, they are never truncated.


Examples

put a $n8601eh.;

Value of a Results
00023FFFFFFFFFFC2008FFF15FFFFFFD
P0002-03--T-:-:-/2008----T15:-:-
2008FFF15FFFFFFdFFFF3FF1553FFFFC
2008----T15:-:-/P--03--T15:53:-


See Also

Working with Dates and Times Using the ISO 8601 Basic and Extended Notations

Previous Page | Next Page | Top of Page