Skip to main content

Module parsing

Module parsing 

Source

Functions§

current_unix_secs
The current time as seconds since the Unix epoch.
parse_bytes
Parse a byte size string to bytes.
parse_depth_constraints
Parse depth constraints from strings like “+2”, “-3”, “1”.
parse_duration
Parse a human-readable time duration string like “3 days”, “2 weeks”, “1 year”.
parse_relative_time
Parse a relative time string like “3 days” or “-3 days” into a SystemTime.
parse_size_constraint
Parse a human-readable byte size string like “5GB”, “10MB”, “500K”, or “6%10”.