Chapter Contents

Previous

Next
TODw.d

TODw.d



Writes the time portion of datetime values in the form hh:mm:ss.ss

Category: Date and Time
Alignment: right


Syntax
Syntax Description
Details
Examples
See Also

Syntax

TODw.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


Details

The TODw.d format writes SAS datetime values in the form hh:mm:ss.ss, where

hh
is an integer that represents the hour.

mm
is an integer that represents the minutes.

ss.ss
is the number of seconds to two decimal places.


Examples

The example table uses the input value of 1347453583, which is the SAS datetime value that corresponds to September 12, 2002, at 12:39:43 PM.

SAS Statements Results

----+----1
put begin tod9.2;
  12:39:43


See Also

Formats:

TIMEw.d
TIMEAMPMw.d

Function:

TIMEPART

Informat:

TIMEw.


Chapter Contents

Previous

Next

Top of Page

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