Skip to main content

from_expanded

Function from_expanded 

Source
pub fn from_expanded(text: &str) -> Option<u64>
Expand description

Reads an expanded timestamp back, as a stat object carries one.

§Arguments

  • text - the timestamp, such as 2014-01-12 08:59:28 GMT.

§Returns

The time in seconds since the epoch, or None when the text is not that shape or names no date on the calendar.