Duration Formats - cressie176/Load64 GitHub Wiki

1. Overview

LoadC64 uses human-readable duration strings for time-based configuration parameters such as autosave frequency and retention.

2. Format

Duration strings consist of one or more number-unit pairs where:

  • Numbers can be integers or decimals
  • Units are standard abbreviations (e.g., s, m, h, d)
  • Multiple units can be combined (e.g., 1h30m)

3. Examples

Duration String Meaning
10s 10 seconds
5m 5 minutes
1h 1 hour
2d 2 days
1h30m 1 hour and 30 minutes
2m30s 2 minutes and 30 seconds

4. Implementation

LoadC64 uses the humantime Rust library for duration parsing. Refer to the library documentation for complete format specifications and validation details.

⚠️ **GitHub.com Fallback** ⚠️