Python pytz._p() Examples

The following are 30 code examples of pytz._p(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module pytz , or try the search function .
Example #1
Source File: tzinfo.py    From elasticintel with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #2
Source File: tzinfo.py    From python with Apache License 2.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #3
Source File: tzinfo.py    From python with Apache License 2.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #4
Source File: tzinfo.py    From pyRevit with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #5
Source File: tzinfo.py    From pyRevit with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #6
Source File: tzinfo.py    From ImageFusion with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #7
Source File: tzinfo.py    From ImageFusion with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #8
Source File: tzinfo.py    From python2017 with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #9
Source File: tzinfo.py    From python2017 with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #10
Source File: tzinfo.py    From Splunking-Crime with GNU Affero General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #11
Source File: tzinfo.py    From Splunking-Crime with GNU Affero General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #12
Source File: tzinfo.py    From komodo-wakatime with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #13
Source File: tzinfo.py    From komodo-wakatime with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #14
Source File: tzinfo.py    From elasticintel with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #15
Source File: tzinfo.py    From Hands-On-Application-Development-with-PyCharm with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
            self.zone,
            _to_seconds(self._utcoffset),
            _to_seconds(self._dst),
            self._tzname
        ) 
Example #16
Source File: tzinfo.py    From bazarr with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #17
Source File: tzinfo.py    From bazarr with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
            self.zone,
            _to_seconds(self._utcoffset),
            _to_seconds(self._dst),
            self._tzname
        ) 
Example #18
Source File: tzinfo.py    From Tautulli with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #19
Source File: tzinfo.py    From Tautulli with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
            self.zone,
            _to_seconds(self._utcoffset),
            _to_seconds(self._dst),
            self._tzname
        ) 
Example #20
Source File: tzinfo.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #21
Source File: tzinfo.py    From Carnets with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
            self.zone,
            _to_seconds(self._utcoffset),
            _to_seconds(self._dst),
            self._tzname
        ) 
Example #22
Source File: tzinfo.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #23
Source File: tzinfo.py    From twitter-stock-recommendation with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
            self.zone,
            _to_seconds(self._utcoffset),
            _to_seconds(self._dst),
            self._tzname
        ) 
Example #24
Source File: tzinfo.py    From keras-lambda with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #25
Source File: tzinfo.py    From keras-lambda with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #26
Source File: tzinfo.py    From odoo12-x64 with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #27
Source File: tzinfo.py    From odoo12-x64 with GNU General Public License v3.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
                self.zone,
                _to_seconds(self._utcoffset),
                _to_seconds(self._dst),
                self._tzname
                ) 
Example #28
Source File: tzinfo.py    From bioforum with MIT License 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,) 
Example #29
Source File: tzinfo.py    From recruit with Apache License 2.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (
            self.zone,
            _to_seconds(self._utcoffset),
            _to_seconds(self._dst),
            self._tzname
        ) 
Example #30
Source File: tzinfo.py    From recruit with Apache License 2.0 5 votes vote down vote up
def __reduce__(self):
        # Special pickle to zone remains a singleton and to cope with
        # database changes.
        return pytz._p, (self.zone,)