Function from_timestamp

Source
pub fn from_timestamp(timestamp: u32) -> OffsetDateTime
Expand description

Convert a Plabble timestamp to a date

§Arguments

  • timestamp - the timestamp to convert

§Returns

The date

§Panics

Panics if the timestamp is not valid