CreateTime

Creates a time-only datetime object using the epoch date ( 1970-1-1 ) as the date reference.

Method Signature

CreateTime(hour=[integer], minute=[integer], second=[integer], millisecond=[integer], timezone=[string])

Arguments

Argument
Type
Required
Description
Default

hour

integer

false

The hour of the date-time object.

0

minute

integer

false

The minute of the date-time object.

0

second

integer

false

The second of the date-time object.

0

millisecond

integer

false

The millisecond of the date-time object.

0

timezone

string

false

Examples

Tag Syntax

<bx:set yourTime = createTime( "5", "24", "56" ) >  
 <bx:dump var="#yourTime#"/>   

Additional Examples

Run Example

dump( CreateTime( "12", "57", "30" ) );

Last updated

Was this helpful?