Previous Page | Next Page

Informats

E8601DZw.d Informat



Reads datetime values that are specified in the Coordinated Universal Time (UTC) time scale using ISO 8601 datetime extended notation yyyy-mm-ddThh:mm:ss+|-hh:mm.fffff or yyyy-mm-ddThh:mm:ss.fffffZ.
Category: Date and Time
ISO 8601
Alignment: left
Alias: IS8601DZ
Time Zone Informat: Yes
ISO 8601 Element: 5.4.1 Complete representation

Syntax
Syntax Description
Details
Examples
See Also

Syntax

E8601DZw.d


Syntax Description

w

specifies the width of the input field.

Default: 26
Range: 20-35
d

specifies the number of digits to the right of the decimal point in the value for the lowest order component. This argument is optional.

Default: 0
Range: 0-6

Details

UTC values specify a time and a time zone based on the zero meridian in Greenwich, England. The E8602DZ informat reads datetime values contain UTC time offsets and that are specified in one of the following ISO 8601 extended datetime notations:

yyyy-mm-ddThh:mm:ss.ffffff+|-hh:mm

yyyy-mm-ddThh:mm:ss.ffffffZ

where

yyyy

is a four-digit year, such as 2008

mm

is a two-digit month (zero padded) between 01 and 12

dd

is a two-digit day of the month (zero padded) between 01 and 31

hh

is a two-digit hour (zero padded), between 00 and 24

mm

is a two-digit minute (zero padded), between 00 and 59

ss

is a two-digit second (zero padded), between 00 and 59

.ffffff

are optional fractional seconds, with a precision of up to six digits, where each digit is between 0 and 9

Z

indicates that the time is UTC time at the zero meridian (Greenwich, England)

+|-hh:mm

is an hour and minute signed offset from zero meridian time. Note that the offset must be +|-hh:mm (that is, + or - and five characters).

Use + for time zones east of the zero meridian and use - for time zones west of the zero meridian. For example, +02:00 indicates a two hour time difference to the east of the zero meridian, and -06:00 indicates a six hour time differences to the west of the zero meridian.

Restriction: The shorter form +|-hh is not supported.

Examples

Input Statement Data Line Results

----+----1----+----2----+

input edz e8601dz.;
2008-09-15T15:53:00Z
1537113180
input edz  e8601dz28.2;
2008-09-15T15:53:00+03:00
1537102380


See Also

Reading Dates and Times Using the ISO 860 Basic and Extended Notations

Previous Page | Next Page | Top of Page