Skip to main content

Appends timestamps to your clerk journal entries

Project description

clerk-timestamp

A clerk extension to append timestamps to your journal

Setup

Install clerk-timestamp in the venv that clerk is installed in

$ pipx runpip josephhaaga-clerk install josephhaaga-clerk-timestamp

Then, in your clerk.conf config file:

...

[hooks]
JOURNAL_OPENED =
    timestamp

For more information, see clerk hooks documentation

Configuration

As of v0.0.3, clerk-timestamp supports the following configuration options.

  • format specifies your timestamp format (used in datetime.strftime)
  • prefix specifies the timestamp prefix
  • suffix specifies the timestamp suffix

Add them to your clerk.conf config file, as show in this example:

[DEFAULT]
...

[hooks]
JOURNAL_OPENED=
    timestamp

[timestamp]
format=%%Y-%%m-%%d %%I:%%M:%%S %%p
prefix=
    [
suffix=] 

which results in a newline character, and square brackets around the timestamp in our specified format every time a journal is opened

# existing journal document <EOF>

[2021-06-22 09:47:23 PM]

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

josephhaaga-clerk-timestamp-0.0.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file josephhaaga-clerk-timestamp-0.0.3.tar.gz.

File metadata

  • Download URL: josephhaaga-clerk-timestamp-0.0.3.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for josephhaaga-clerk-timestamp-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1d830c726a3b0e69aca91036c6494b1c08bd22a13c9c01f0f817d2e4814c1d46
MD5 322aba4f9ebd5c9c543f416a9f6cf826
BLAKE2b-256 dcec9cd127e740ca0c473ddb6171709e41205fe521457e7cc6c4828658eebfe2

See more details on using hashes here.

File details

Details for the file josephhaaga_clerk_timestamp-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: josephhaaga_clerk_timestamp-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for josephhaaga_clerk_timestamp-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1187a2af47609b36bab0f5f950420611db2d1ef9fdb5cc0e3d8740232ee53473
MD5 e7249e2a6ab573df875acac3e04c303e
BLAKE2b-256 15b0c426d40c4ba2e931f9ff92b43302674e01e1599e040706bd51e2d1b28d8e

See more details on using hashes here.

Supported by

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