beautypg.com

Time related codes, Shortcut codes, Miscellaneous codes – Visara Master Console Center Scripting Guide User Manual

Page 203: Table 17. time-related codes for timestr(), Table 18. shortcut codes for timestr(), Table 19. miscellaneous codes for timestr()

background image

Chapter 5 Script Commands

Scripting Guide

203

Time Related Codes

Code Description

Notes/Examples

H

Hour number for a 24-hour clock

with a leading zero filler

Between 00 and 23

I

Hour number for a 12-hour clock

with a leading zero filler

Between 01 and 12

M

Minute number with a leading

zero filler

Between 00 and 59

p

AM or PM indicator

AM, PM

S

Second number with a leading

zero filler

Between 00 and 61

T

Time shortcut for “%H:%M:%S”

16:08:02

Z

Time zone name, if defined to the
system (TZ env var)

CDT, CST, PST

Table 17. Time-related codes for TIMESTR()

Shortcut Codes

Code Description

Notes/Examples

c

Date and time format “%a %b %d

%H:%M:%S %Y”

Mon Jan 01 00:00:00

1990

D Date

format

“%m/%d/%y” 06/20/90

r

Time format “%I:%M:%S p”

04:08:02 PM

R Time

format

“%H:%M” 16:08

T Time

format

“%H:%M:%S”

16:08:02

Table 18. Shortcut codes for TIMESTR()

Miscellaneous Codes

Code Description

Notes/Examples

n

Newline character (causes a

blank line)

t

Tab character (causes tabbing to

next screen field)

% Percent

character

Table 19. Miscellaneous codes for TIMESTR()