Author:
K. Hilbert <Karsten.Hilbert@gmx.net>
License:
GPL v2 or later (details at http://www.gnu.org)
|
|
|
|
|
|
|
|
|
format_dob(dob,
format=' %Y %b %d ' ,
none_string=None,
dob_is_estimated=False) |
source code
|
|
|
pydt_strftime(dt=None,
format=' %Y %b %d %H:%M.%S ' ,
accuracy=None,
none_str=None) |
source code
|
|
|
pydt_add(dt,
years=0,
months=0,
weeks=0,
days=0,
hours=0,
minutes=0,
seconds=0,
milliseconds=0,
microseconds=0) |
source code
|
|
|
pydt_replace(dt,
strict=True,
year=None,
month=None,
day=None,
hour=None,
minute=None,
second=None,
microsecond=None,
tzinfo=None) |
source code
|
|
|
|
|
pydt_now_here()
Returns NOW @ HERE (IOW, in the local timezone. |
source code
|
|
|
|
|
|
|
format_interval(interval=None,
accuracy_wanted=None,
none_string=None,
verbose=False) |
source code
|
|
|
|
|
|
|
|
|
|
|
calculate_apparent_age(start=None,
end=None)
The result of this is a tuple (years, ..., seconds) as one would
'expect' an age to look like, that is, simple differences between
the fields: |
source code
|
|
|
format_apparent_age_medically(age=None)
<age> must be a tuple as created by calculate_apparent_age() |
source code
|
|
|
|
|
str2pydt_matches(str2parse=None,
patterns=None)
Turn a string into candidate dates and auto-completions the user is
likely to type. |
source code
|
|
|
|
|
__doc__ = ...
|
|
dst_locally_in_use = None
|
|
dst_currently_in_effect = None
|
|
current_local_utc_offset_in_seconds = None
|
|
current_local_timezone_interval = None
|
|
current_local_iso_numeric_timezone_string = None
|
|
current_local_timezone_name = None
|
|
py_timezone_name = None
|
|
py_dst_timezone_name = None
|
|
gmCurrentLocalTimezone = ' gmCurrentLocalTimezone not initialized '
|
|
gregorian_month_length = { 1: 31, 2: 28, 3: 31, 4: 30, 5: 31, 6...
|
|
avg_days_per_gregorian_year = 365
|
|
avg_days_per_gregorian_month = 30
|
|
avg_seconds_per_day = 86400
|
|
days_per_week = 7
|
|
__package__ = ' Gnumed.pycommon '
|
|
acc_days = 4
|
|
acc_hours = 5
|
|
acc_minutes = 6
|
|
acc_months = 2
|
|
acc_seconds = 7
|
|
acc_subseconds = 8
|
|
acc_weeks = 3
|
|
acc_years = 1
|