Chapter Contents

Previous

Next
TIMEw.d

TIMEw.d



Writes time values as hours, minutes, and seconds in the form hh:mm:ss.ss

Category: Date and Time
Alignment: right


Syntax
Syntax Description
Details
Comparisons
Examples
See Also

Syntax

TIMEw.d

Syntax Description

w
specifies the width of the output field.
Default: 8
Range: 2-20

d
optionally specifies the number of digits to the right of the decimal point in the seconds value.
Requirement: must be less than w
Range: 1-19


Details

The TIMEw.d format writes SAS time values 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 that range from 00 through 59 with the fraction of a second following the decimal point.

Make w large enough to produce the desired results. To obtain a complete time value with three decimal places, you must allow at least 12 spaces: 8 spaces to the left of the decimal point, 1 space for the decimal point itself, and 3 spaces for the decimal fraction of seconds.


Comparisons

The TIMEw.d format is similar to the HHMMw.d format except that TIMEw.d prints seconds.


Examples

The example table uses the input value of 59083, which is the SAS time value that corresponds to 4:24:43 PM.

SAS Statements Results

----+----1
put begin time.;
16:24:43


See Also

Formats:

HHMMw.d
HOURw.d
MMSSw.d

Functions:

HOUR
MINUTE
SECOND
TIME

Informat:

TIMEw.


Chapter Contents

Previous

Next

Top of Page

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