LocalTime
Returns the current local date and time.
Module: Std::Time
Signature
rux
func LocalTime() -> SystemTime;Returns
SystemTime — the current local date and time, broken down into year, month, day, time, and milliseconds.
Description
On Windows, this uses the system's configured time zone.
WARNING
On Linux and Illumos, LocalTime currently returns the same value as UtcTime — there is no time-zone offset applied yet. On macOS it returns a zeroed SystemTime. See the module overview.
Example
rux
import Std::Time;
let now = Time::LocalTime();See also
Std::Time— module overviewUtcTime— UTC variantSystemTime— the returned struct