Function calculate_time

Source
pub fn calculate_time() -> (u64, u64, u64, u64, u64, u64, u64, u64)
Expand description

Calculates the current year, month, day, hour, minute, second, millisecond and microsecond.

ยงReturns

A tuple containing:

  • year: The current year
  • month: The current month
  • day: The current day
  • hour: The current hour (0-23)
  • minute: The current minute (0-59)
  • second: The current second (0-59)
  • millisecond: The number of milliseconds passed in the current second
  • microsecond: The number of microseconds passed in the current second