From 5b86c5aab614aa3b125c96b3a623e18896c2c45d Mon Sep 17 00:00:00 2001 From: matograine <tom.ngr@zaclys.net> Date: Mon, 26 Apr 2021 16:50:38 +0200 Subject: [PATCH] [mod] #344 create constants for pendulum --- silkaj/constants.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/silkaj/constants.py b/silkaj/constants.py index f941a370..bd47f463 100644 --- a/silkaj/constants.py +++ b/silkaj/constants.py @@ -32,3 +32,11 @@ MINIMAL_ABSOLUTE_TX_AMOUNT = 0.01 MINIMAL_RELATIVE_TX_AMOUNT = 1e-6 CENT_MULT_TO_UNIT = 100 SHORT_PUBKEY_SIZE = 8 + +# pendulum constants +# see https://pendulum.eustace.io/docs/#localized-formats +DATE = "LL" +HOUR = "LTS" +ALL = "LLL" +# Not ISO 8601 compliant but common +ALL_DIGITAL = "YYYY-MM-DD HH:mm:ss" -- GitLab