/usr/lib/python2.7/dist-packages/dfdatetime/definitions.py is in python-dfdatetime 20180110-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | # -*- coding: utf-8 -*-
"""The date and time definitions.
Also see:
https://en.wikipedia.org/wiki/Day
https://en.wikipedia.org/wiki/Hour
https://en.wikipedia.org/wiki/Minute
"""
from __future__ import unicode_literals
SECONDS_PER_DAY = 24 * 60 * 60
DECISECONDS_PER_SECOND = 10
MILLISECONDS_PER_SECOND = 1000
MICROSECONDS_PER_SECOND = 1000000
MICROSECONDS_PER_DECISECOND = 100000
MICROSECONDS_PER_MILLISECOND = 1000
PRECISION_1_DAY = '1d'
PRECISION_1_HOUR = '1h'
PRECISION_1_NANOSECOND = '1ns'
PRECISION_100_NANOSECONDS = '100ns'
PRECISION_1_MICROSECOND = '1us'
PRECISION_1_MILLISECOND = '1ms'
PRECISION_100_MILLISECONDS = '100ms'
PRECISION_1_MINUTE = '1min'
PRECISION_1_SECOND = '1s'
PRECISION_2_SECONDS = '2s'
PRECISION_VALUES = frozenset([
PRECISION_1_DAY,
PRECISION_1_HOUR,
PRECISION_1_NANOSECOND,
PRECISION_100_NANOSECONDS,
PRECISION_1_MICROSECOND,
PRECISION_1_MILLISECOND,
PRECISION_100_MILLISECONDS,
PRECISION_1_MINUTE,
PRECISION_1_SECOND,
PRECISION_2_SECONDS])
|