Skip to main content

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

Project description

tsfmt-core

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

Installation

pip install tsfmt-core

Usage

# Show current time in all formats
tsfmt-core

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

# Parse a unix epoch value
tsfmt-core 1744538400

# Output in a specific format
tsfmt-core --format iso
tsfmt-core "2026-04-13" --format unix
tsfmt-core --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_core-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_core-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tsfmt_core-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_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d51445ef343d428d70ccd3345ca79f9bf63496f2ba1f7e4ef087eec264cda31
MD5 038f5e378ef60889bbab1045ee9b85ff
BLAKE2b-256 1ec6d92c2c4ca02e81ce537602aed1819aacc39b3ffac3be6ec1c3f3b22fd90a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tsfmt_core-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_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 88a411d9bdbcc7d4dde0bafa9b50b3e03d13737469e16dd2d2a90eb8fce6e37c
MD5 5c01d73cc485704604cfdb6962019bd7
BLAKE2b-256 c9c8d68adf6b6fb203a19e58c2113c0bba7ced1a30ba05e697aa1e14a2ca5d84

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