Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Date Intervals, Formats, and Functions

Datetime and Time Formats

Table 3.4 lists the datetime and time formats available. For each format, an example is shown of a datetime value in the notation produced by the format. The datetime value '17OCT91:14:25:32'D is used as the example.

Table 3.4: SAS Datetime and Time Formats

Format   Width Default
     Example Description Range Width
    
DATETIMEw.dddMONyy:hh:mm:ss7-4016
     17OCT91:14:25:32   
    
HHMMw.dhour and minute: hh:mm2-205
     14:25   
    
HOURw.dhour2-202
     14   
    
MMSSw.dminutes and seconds: mm:ss2-205
     25:32   
    
TIMEw.dtime of day: hh:mm:ss2-208
     14:25:32   
    
TODw.time of day: hh:mm:ss2-208
     14:25:32   

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.