Skip to main content

Module parsing

Module parsing 

Source

Functions§

parse_duration
Parse a human-readable duration string (e.g., “30d”, “2w”, “6M”) into seconds.
parse_size
Parse a human-readable size string (e.g., “100MB”, “1GB”, “512KB”) into bytes.