Skip to main content

A single function to get a nice date-time format

Project description

neattime

This package includes a simple function to create my preferred date-time format for log files.

Example:

from neattime import neattime

print(neattime())

output:

'2025-02-26_08.34.13.636609'

How I would actually use it:

from neattime import neattime

filepath = f'save_directory/log_{neattime()}'

# some code that saves my logfile

print(f"File saved to {filepath}")

output:

File saved to save_directory/log_2025-02-26_08.34.13.636609

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

neattime-0.0.2.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

neattime-0.0.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file neattime-0.0.2.tar.gz.

File metadata

  • Download URL: neattime-0.0.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for neattime-0.0.2.tar.gz
Algorithm Hash digest
SHA256 788d9d46bd47e065bd3480c87185ae398f55621a5313082a6d44bf1e3a52d36a
MD5 9391657bb6be8de953bac83fc250ef51
BLAKE2b-256 c1dcbd673628a9ea1d56b0303d7c01a2b21770751b6f7fcf4ce189bb7fa33a4e

See more details on using hashes here.

File details

Details for the file neattime-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: neattime-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for neattime-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 34374713334d2ada0718199266d4b2b30a7cdda0f99a303098f17efab5fdd10d
MD5 375c9f4d749aa3eea14fdfa604870f76
BLAKE2b-256 7d716984316afd953e8c3675b3054fca2ea6e4c1c6090b56cd8dd7e6ec1ceb39

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