unixtime
| Type | 32-bit unsigned integer |
|---|---|
| DHCP option number | not applicable |
| ISC dhcpd syntax | not applicable |
iPXE> show unixtime builtin/unixtime:uint32 = 0x5889ed58
iPXE> set builtin/unixtime 0x10d1a884
iPXE> ntp pool.ntp.org
Shows the current time (measured in seconds since the Unix Epoch, i.e. since January 1 1970 00:00:00).
Setting the current time will affect only the time and date as used by iPXE. The underlying hardware clock will not be updated.
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.
You can use the clear command to effectively reload the time and date from the underlying hardware clock:
clear builtin/unixtime