comparison hgext3rd/fastimport/vendor/python_fastimport/dates.py @ 88:2fc99e3479d9

python-fastimport: Import our own modules using relative pathing This allows python-fastimport to be embedded as vendor code within other modules. This patch has been accepted upstream.
author Roy Marples <roy@marples.name>
date Tue, 19 Jan 2021 23:00:01 +0000
parents 28704a2a7461
children
comparison
equal deleted inserted replaced
87:51664f5abc3a 88:2fc99e3479d9
22 * timestamp is seconds since epoch 22 * timestamp is seconds since epoch
23 * timezone is the offset from UTC in seconds. 23 * timezone is the offset from UTC in seconds.
24 """ 24 """
25 import time 25 import time
26 26
27 from fastimport import errors 27 from . import errors
28 28
29 29
30 def parse_raw(s, lineno=0): 30 def parse_raw(s, lineno=0):
31 """Parse a date from a raw string. 31 """Parse a date from a raw string.
32 32