Skip to main content

parse_lstart

Function parse_lstart 

Source
pub fn parse_lstart(text: &str) -> Option<(i32, i32, i32, i32, i32, i32)>
Expand description

What: The fields of a ps -o lstart= line: year, month (0 to 11), day, hour, minute, second. Why: Date.parse reads this local-time form; the conversion to an instant happens apart.

In TS you’d write (pseudocode):

Date.parse('Fri Sep 26 10:00:00 2026')