WLJS LogoWLJS Notebook

TimeObject

TimeObject[] represents the current time.

TimeObject[{h, m, s}] represents a time object of standard normalized form.

TimeObject[date] gives the time component of the specified date representation.

TimeObject[rtime, gran] gives the time object of granularity gran that includes the reference time rtime.

Examples

Current time:

TimeObject[]
(* TimeObject[{14, 30, 45.123}] *)

Specific time:

TimeObject[{10, 30, 0}]
(* TimeObject[{10, 30, 0}] *)

Please visit the official Wolfram Language Reference for more details.

On this page