14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

118 Types of Data Chapter 6<br />

Date-Time Functions and Formats<br />

Table 6.4 Date-Time Formats (Continued)<br />

Type Format argument Example<br />

"Monddyyyy h:m" "Jan021999 13:01"<br />

"Jan021999 1:01 PM"<br />

"Monddyyyy h:m:s" "Jan021999 13:01:02"<br />

"Jan021999 1:01:02 PM"<br />

Day number<br />

and time<br />

":day:hr:m" "34700:13:01"<br />

":33:001:01 PM"<br />

":day:hr:m:s" "34700:13:01:02"<br />

":33:001:01:02 PM"<br />

"h:m:s" "13:01:02"<br />

"01:01:02 PM"<br />

"h:m" "13:01"<br />

"01:02 PM"<br />

"yyyy-mm-ddThh:mm"<br />

"yyyy-mm-ddThh:mm:ss"<br />

1999-01-02T13:01<br />

1999-01-02T13:01:02<br />

Duration ":day:hr:m" “52:03:01”<br />

reads fifty-two days, three hours, and one minute<br />

":day:hr:m:s" “52:03:01:30”<br />

reads fifty-two days, three hours, one minute, and<br />

thirty seconds<br />

"hr:m" “17:37”<br />

"hr:m:s" “17:37:04”<br />

"min:s" “37:04”<br />

reads seventeen hours and thirty-seven minutes<br />

reads seventeen hours, thirty-seven minutes, and 4<br />

seconds<br />

reads thirty-seven minutes and 4 seconds<br />

Note: The following formats display the date-time according to your computer’s regional settings. They<br />

are available only for the display of dates, not for date input in a data table. Examples are shown for the<br />

United States locale.<br />

Abbreviated date "Date Abbrev" (Display only) “01/02/1999"<br />

Long date "Date Long" (Display only) "Saturday, January 02, 1999"

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!