Home | Trees | Indices | Help |
|
---|
|
GNUmed date/time handling. This modules provides access to date/time handling and offers an fuzzy timestamp implementation It utilizes - Python time - Python datetime - mxDateTime Note that if you want locale-aware formatting you need to call locale.setlocale(locale.LC_ALL, '') somewhere before importing this script. Note regarding UTC offsets -------------------------- Looking from Greenwich: WEST (IOW "behind"): negative values EAST (IOW "ahead"): positive values This is in compliance with what datetime.tzinfo.utcoffset() does but NOT what time.altzone/time.timezone do ! This module also implements a class which allows the programmer to define the degree of fuzziness, uncertainty or imprecision of the timestamp contained within. This is useful in fields such as medicine where only partial timestamps may be known for certain events. Other useful links: http://joda-time.sourceforge.net/key_instant.html
Author: K. Hilbert <Karsten.Hilbert@gmx.net>
License: GPL v2 or later (details at http://www.gnu.org)
Classes | |
cFuzzyTimestamp A timestamp implementation with definable inaccuracy. |
Functions | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Variables | |
__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 =
|
|
gregorian_month_length =
|
|
avg_days_per_gregorian_year = 365
|
|
avg_days_per_gregorian_month = 30
|
|
avg_seconds_per_day = 86400
|
|
days_per_week = 7
|
|
__package__ =
|
|
acc_days = 4
|
|
acc_hours = 5
|
|
acc_minutes = 6
|
|
acc_months = 2
|
|
acc_seconds = 7
|
|
acc_subseconds = 8
|
|
acc_weeks = 3
|
|
acc_years = 1
|
Imports: sys, pyDT, time, os, regex, locale, logging, mxDT, psycopg2, gmI18N, cLocalTimezone, cFixedOffsetTimezone
Function Details |
Formats an interval. This isn't mathematically correct but close enough for display. |
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: (years, months, days, hours, minutes, seconds) This does not take into account time zones which may shift the result by one day. <start> and <end> must by python datetime instances <end> is assumed to be "now" if not given |
Turn a string into candidate dates and auto-completions the user is likely to type. You MUST have called locale.setlocale(locale.LC_ALL, '') somewhere in your code previously.
|
Turn a string into candidate fuzzy timestamps and auto-completions the user is likely to type. You MUST have called locale.setlocale(locale.LC_ALL, '') somewhere in your code previously.
|
Variables Details |
__doc__
|
gregorian_month_length
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Aug 3 03:55:54 2013 | http://epydoc.sourceforge.net |