pyams_utils.timezone package¶
-Submodules¶
-pyams_utils.timezone.utility module¶
--
-
-
-class
pyams_utils.timezone.utility.
ServerTimezoneUtility
¶
- Bases:
-persistent.Persistent
,zope.container.contained.Contained
-
-
-
-
timezone
¶
- Default server timezone
-
-
-
-
-
-
-class
pyams_utils.timezone.utility.
TimezoneGenerationsChecker
¶
- Bases:
-object
Timezone generations checker
--
-
-
-
evolve
(site, current=None)¶
- Check for required utilities
-
-
-
-
-
generation
= 1¶
-
-
-
-
-
-
-
pyams_utils.timezone.utility.
handle_new_local_site
(event)¶
- Create a new ServerTimezoneUtility when a site is created
-
pyams_utils.timezone.vocabulary module¶
--
-
-
-class
pyams_utils.timezone.vocabulary.
TimezonesVocabulary
(*args, **kw)¶
- Bases:
-zope.schema.vocabulary.SimpleVocabulary
Timezones vocabulary
-
Module contents¶
--
-
-
-
pyams_utils.timezone.
gmtime
(value)¶
- Convert datetime to GMT
-Value is assumed to be in GMT if no timezone is given
-
-
-
-
-
pyams_utils.timezone.
localgmtime
(value)¶
- Convert datetime to GMT
-Value is assumed to be in server timezone if none is given
-
-
-
-
-
pyams_utils.timezone.
tzinfo
(request=None)¶
- request to timezone adapter
-There is no easy way to get timezone from a request. -This adapter assumes that the timezone is given by -a registered utility...
-
-
-
-
-
pyams_utils.timezone.
tztime
(value)¶
- Convert datetime to local timezone
--
-- - - - -Parameters: value (datetime) – input datetime; value is assumed to be in GMT if no timezone is given -