Skip to content

date formats #26

@mvhulten

Description

@mvhulten

Throughout the scripts, many formats of dates are used:

- date +%Y%m%d%H%M%S    → 20260318154158
- date +%s              → 1773845078
- date '+%Y-%m-%d'      → 2026-03-18
- date +%H:%M:%S        → 15:46:19
- date +%Y-%m-%d_%H.%M.%S → 2026-03-18_15.47.02
* startdate="2017-07-01T00:00Z"

Suggestion is to reduce the number of formats. ISO nice, but colon not ideal in filenames.

For cross-platform, in ISO format, maybe define a formatting at the start:

dtfmt='+%FT%H:%M'
date $dtfmt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions