Chapter Contents

Previous

Next
TIMEw.

TIMEw.



Reads hours, minutes, and seconds in the form hh:mm:ss.ss

Category: Date and Time


Syntax
Syntax Description
Details
Examples
See Also

Syntax

TIMEw.

Syntax Description

w
specifies the width of the input field.
Default: 8
Range: 5-32


Details

Time values must be in the form hh:mm:ss.ss, where

hh
is the number of hours that range from 00 through 23.

mm
is the number of minutes that range from 00 through 59.

ss.ss
is the number of seconds ranging from 00 through 59 with the fraction of a second following the decimal point.

Separate hh, mm, and ss.ss with a special character. If you do not enter a value for seconds, SAS assumes a value of 0.

The stored value is the total number of seconds in the time value.


Examples

input begin time10.; 

Data Lines Results
----+----1----+

11:23:07.4
40987.4

The TIME informat can read time values with AM or PM in the value.

input begin time8.;

Data Lines Results
----+----1----+

1:13 PM
47580.0


See Also

Formats:

HHMMw.d
HOURw.d
MMSSw.d
TIMEw.d

Functions:

HOUR
MINUTE
SECOND
TIME


Chapter Contents

Previous

Next

Top of Page

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