Skip to main content

CLI app for generating timestamps for use in Discord chats.

Project description

dstamp

CLI app for generating timestamps for use in Discord chats.

Installation

Install using pipx or uv:

pipx install dstamp
uv tool install dstamp

Example usage

# For the current time
dstamp get

# Two hours in the future
dstamp get --offset 2h

# Round to the nearest hour
dstamp get -o 2h --round --precision h

# Copy to clipboard
dstamp --copy-to-clipboard

# Show active configuration
dstamp show-config

For full documentation see the help messages:

dstamp --help
dstamp get --help
dstamp show-config --help

Configuration

Run show-config with no arguments to find the default config location:

dstamp show-config

The config file should be in .toml format. The defaults are equivalent to the following:

copy_to_clipboard = false
output_format = "relative"
round = false
rounding_precision = "10m"

These settings will be in effect unless overriden by CLI options.

Contributing

If you'd like to see something added to dstamp or if you would like to add something yourself, please see CONTRIBUTING!

Please also see the above if you have a bug to report.

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

dstamp-1.0.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

dstamp-1.0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file dstamp-1.0.1.tar.gz.

File metadata

  • Download URL: dstamp-1.0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dstamp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e0134bfa86be4e7d70f0b8df918ea35ba63b8721f9f06bce99ae60f1fb26a5ef
MD5 bcd52bde3fcff1b5439863f475d83fd9
BLAKE2b-256 6dcd301087c611df7e3b5672d2288f13e8922bf026fb156da08d1bca4e9cc29c

See more details on using hashes here.

File details

Details for the file dstamp-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: dstamp-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for dstamp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 97660f183b09b60b593a65839518a073365f758c104b582d11573042d0991e87
MD5 431aa0aa24e60475bffa9d8ea21e208a
BLAKE2b-256 cc0ae24be121dba2963d7a44eeb66c917a83beb6f688d5aa776aea663106d18f

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