Skip to main content

A lightweight command-line utility for parsing and reformatting timestamps.

Project description

tsfmt-ng

A lightweight command-line utility for parsing and reformatting timestamps.

Installation

pip install tsfmt-ng

Usage

# Show current time in all formats
tsfmt-ng

# Parse and reformat a specific timestamp
tsfmt-ng "2026-04-13T10:00:00"

# Parse a unix epoch value
tsfmt-ng 1744538400

# Output in a specific format
tsfmt-ng --format iso
tsfmt-ng "2026-04-13" --format unix
tsfmt-ng --format human

Output Formats

Format Example
iso 2026-04-13T10:00:00Z
unix 1744538400
human April 13, 2026 10:00:00 AM UTC
date 2026-04-13
time 10:00:00
rfc2822 Mon, 13 Apr 2026 10:00:00 +0000

Accepted Input Formats

  • ISO 8601 (2026-04-13T10:00:00, 2026-04-13T10:00:00Z)
  • Unix epoch (1744538400)
  • YYYY-MM-DD HH:MM:SS
  • YYYY-MM-DD
  • DD/MM/YYYY
  • MM/DD/YYYY

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tsfmt_ng-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tsfmt_ng-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file tsfmt_ng-0.1.0.tar.gz.

File metadata

  • Download URL: tsfmt_ng-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for tsfmt_ng-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f8274a436c948e5a507fa0b9fe69467add4612bc34bc33d76f4846cb1fafcbd5
MD5 4cc0fc8a1561c0cfc8eea6f0b92f3f3c
BLAKE2b-256 9aa0b50f51837ddb509867121f259a280eb6d4dd0177cfb8345317c71bbc8287

See more details on using hashes here.

File details

Details for the file tsfmt_ng-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tsfmt_ng-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for tsfmt_ng-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea6a94c63aa47b39e5f35a68589834a934fd423751fc89f0b4748103240f41c9
MD5 d2fe58186c1f1db7a2920d4186e16080
BLAKE2b-256 447476fbc96b37a2a5417b0f38fd78efdbfc3655b2999cc8a9b75416c0669d00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page