Skip to main content

toms - unix timestamp converter

PyPI

Features:

  • Convert unix epoch millis to UTC iso date
  • Convert UTC iso date to unix epoch millis
  • Read from stdin
  • Replace all occurrences of unix epoch millis with iso date in text
  • Print current time millis

install

pip3 install toms

examples

Convert unix epoch millis to UTC iso date

toms 1500000000000
2017-07-14T02:40:00+00:00

Convert UTC iso date to unix epoch millis

toms 2017-07-14T02:40
1500000000000

Read from stdin

echo '2019-01-01 2020-01-01T10:12' | toms
1546300800000
1577873520000

Replace all occurrences of unix epoch millis with iso date in text

echo 'text 1500000000000 text' > /tmp/some-text.txt
cat /tmp/some-text.txt | toms replace
text 2017-07-14T02:40:00+00:00 text

Print current time millis

toms now
1592335604695

Release files for toms 0.4.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toms 0.4.5
File Size Uploaded
toms-0.4.5.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for toms 0.4.5
File Interpreter ABI Platform
toms-0.4.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.1 kB

Release files / toms-0.4.5.tar.gz

Download URL toms-0.4.5.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
afc72271c99e8dcc07bf2e6e84451b65d6dafe6bfaa6a29cde688759c0d0fc6a
BLAKE2b-256 checksum
How to use checksums
d629579bc1d032309011cdef8696a3a54a655155bdeaaad2e97fda4b4868aed0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release files / toms-0.4.5-py3-none-any.whl

Download URL toms-0.4.5-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
77006cbd7cb84a7972266280680ffb4b5dc940376a8b881e384e550242820bbb
BLAKE2b-256 checksum
How to use checksums
d94b7a70dc310541fe9bc1fa5146fcf9a0b892b82d5c7da33ba05b681f6bfc12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.4.5 This release

2 release files

0.4.4

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page