Using time display formats
Applies to
Display formats
Description
A time display format can have two sections. The first section
is required and contains the format for times. The second section
is optional and specifies how to represent NULLs.
|
1 |
time-format;null-format |
The following table shows characters that have special meaning
in time display formats.
|
Character |
Meaning |
|---|---|
|
h |
Hour with no leading zero (for example, |
|
hh |
Hour with leading zero if appropriate |
|
m |
Minute with no leading zero (must follow |
|
mm |
Minute with leading zero if appropriate |
|
s |
Second with no leading zero (must follow |
|
ss |
Second with leading zero (must follow |
|
ffffff |
Microseconds with no leading zeros. You |
|
AM/PM |
Two-character, upper-case abbreviation |
|
am/pm |
Two-character, lower-case abbreviation |
|
A/P |
One-character, upper-case abbreviation |
|
a/p |
One-character, lower-case abbreviation |
Colons, slashes, and spaces display as entered in the mask.
The keyword [Time] tells
PowerBuilder to use the time format specified in the Microsoft Windows
control panel.
Usage
24-hour format is the default. Times display in 24-hour format
unless you specify AM/PM, am/pm, A/P,
or a/p.
Examples
The following table shows how the time 9:45:33:234567
PM displays when different format masks are applied.
|
Format |
Displays |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|