Name

clock — Provides time utilities

Synopsis

clock [ seconds | time | format format ]

Description

The clock command is used to return information on the current time. With the seconds option, the number of seconds since January 1st, 1970 are returned. With the time option, milliseconds since that date are returned.

With the format option, the clock command takes a millisecond value and returns a formatted date and time. For example:

Example

hecl> clock format [clock time]
Fri Jun 15 13:22:20 CEST 2007