date

    date command for MoonX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.7
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    140

    #date

    Parse and format dates through MoonX.

    #Usage

    moonx cli/date -u '+%Y-%m-%dT%H:%M:%SZ' moonx cli/date -u -d '@0' '+%Y-%m-%d'

    Format the current time or a supplied date. Supports UTC, fractional epoch values and the documented TZ/TZif/POSIX timezone profile.

    #Common options

    OptionDescription
    -u, --utcUse UTC.
    -d VALUE, --date VALUERead an ISO date/time or @SECONDS.
    --iso VALUEISO output: date, hours, minutes, seconds or ns. Default: date.
    -R, --rfc-emailPrint an RFC email timestamp.
    --helpShow help.
    --versionShow the version.

    Use --help for the complete option list.

    #Notes

    • Ambiguous or nonexistent local times are rejected. Full GNU relative-date grammar and setting the system clock are unsupported.
    • Timezone file access and local-zone discovery depend on the host and launcher permissions.

    See the compatibility guide for the supported profile.

    Source Files