Seconds since the Epoch

Name

  unixtime

Details

Type 32-bit unsigned integer
DHCP option number not applicable
ISC dhcpd syntax not applicable

Examples

Display the current time

  iPXE> show unixtime
  builtin/unixtime:uint32 = 0x5889ed58

Description

Shows the current time (measured in seconds since the Unix Epoch, i.e. since January 1 1970 00:00:00).

See also

Notes

You can convert the time into a human-readable format using the Linux date command. For example:

  date --date=@$((0x5889ed58))

The time zone is the time zone as used by the machine's CMOS clock. This will often (but not always) be UTC. If you need a time in a known time zone, then you can use the ntp command to obtain the current UTC time.

cfg/unixtime.txt ยท Last modified: 2017/01/26 12:47 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.