Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Webroutineに時間を表示・入力する際に使用するフォーマットまたはマスクを指定します。ウェブレットに時間をどのようにフォーマットするかを伝える様々な書式指定子を含んだ文字列です。

有効な書式指定子は次の通りです:

書式指定子

説明

HH

0から23の数で時間を表します。つまり、夜中の12時から時間を計算するゼロベースの24時間計の時間を表します。1桁の時間は0を前につけてフォーマットされます。

H

0から23の数で時間を表します。つまり、夜中の12時から時間を計算するゼロベースの24時間計の時間を表します。

hh

1から12の数で時間を表します。つまり、夜中の12時または正午から時間を計算する12時間計の時間を表します。1桁の時間は0を前につけてフォーマットされます。

h

1から12の数で時間を表します。つまり、夜中の12時または正午から時間を計算する12時間計の時間を表します。

mm

分を0から59までの数字で表示します。1桁の場合は0を前につけてフォーマットされます。

m

分を0から59までの数字で表示します。

ss

秒を00から59までの数字で表示します。1桁の場合は0を前につけてフォーマットされます。

s

秒を00から59までの数字で表示します。

sss

ミリ秒を000から999までの数字で表示します。全ての値が3桁で表示されます。

t

A.M.もしくはP.M.を表示します。

Note

注意:ここではウェブレットが使用するプレゼンテーション形式を指定します。Webroutineから受信・送信する、入力および出力の日付は常にISO形式です。このプロパティを使って異なるプレゼンテーション形式を選択する場合、ウェブレットは必要に応じて内部プレゼンテーションの変換を行います。

デフォルト値

HH:mm:ss

有効値

有効なフォーマット指定を含む文字列

Specifies the format or mask used to display and enter the time for the weblet. This is a string containing a number of format specifiers that tell the weblet how to format the time.

Valid formatspecifiers are:

...

Format Specifier

...

Description

...

HH

...

Represents the hour as a number from 0 through 23, that is, the hour as represented by a zero-based 24-hour clock that counts the hours since midnight. A single-digit hour is formatted with a leading zero.

...

H

...

Represents the hour as a number from 0 through 23, that is, the hour as represented by a zero-based 24-hour clock that counts the hours since midnight.

...

hh

...

Represents the hour as a number from 1 through 12, that is, the hour as represented by a 12-hour clock that counts the whole hours since midnight or noon. A single-digit hour is formatted with a leading zero.

...

h

...

Represents the hour as a number from 1 through 12, that is, the hour as represented by a 12-hour clock that counts the whole hours since midnight or noon.

...

mm

...

Represents the minute as a number from 0 through 59. A single-digit minute is formatted with a leading zero.

...

m

...

Represents the minute as a number from 0 through 59.

...

ss

...

Represents the seconds as a number from 00 through 59. A single-digit second is formatted with a leading zero.

...

s

...

Represents the seconds as a number from 00 through 59.

...

sss

...

Represents the milliseconds as a number from 000 through 999 All values are represented as three digits.

...

t

...

Represents A.M. or P.M.

Note
Note: This specifies the presentation format the weblet uses. The input and output date received from and returned to the webroutine are always in ISO format. If you choose a different presentation format by setting this property, the weblet will convert to and from the internal representation as required.

Default value

'HH:mm:ss'

Valid values

Any string containing valid format specifiers.