Functions for NLS |
Category: | Date and Time |
Syntax | |
Arguments | |
Details | |
Examples | |
See Also |
Syntax |
NLTIME(time|datetime,descriptor,startpos) |
specifies a SAS time value.
specifies a SAS datetime value.
is a variable, or expression, that specifies the value of a descriptor. You can enter the following descriptors in uppercase or lowercase:
removes the leading zero from the result.
specifies the % character.
specifies the hour descriptor that is based on a 24-hour clock. The range for the hour descriptor is 00-23.
specifies the hour descriptor that is based on a 12-hour clock. The range for the hour descriptor is 01-12.
specifies the minute modifier. The range for the minute descriptor is 00-59.
specifies the a.m. or p.m. descriptor.
specifies the second descriptor. The range for the second descriptor is 00-59.
is an integer that specifies the position at which the search should start and that specifies the direction of the search.
Details |
The NLTIME function converts a SAS time or datetime value to the time value of the specified locale by using the time descriptors.
Examples |
The following example shows an a.m. or p.m. time that is created from a SAS time.
See Also |
Formats: |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.