Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
__init__.py73 linesDownload Raw Back to isodate
1##############################################################################2# Copyright 2009, Gerhard Weis3# All rights reserved.4#5# Redistribution and use in source and binary forms, with or without6# modification, are permitted provided that the following conditions are met:7#8#  * Redistributions of source code must retain the above copyright notice,9#    this list of conditions and the following disclaimer.10#  * Redistributions in binary form must reproduce the above copyright notice,11#    this list of conditions and the following disclaimer in the documentation12#    and/or other materials provided with the distribution.13#  * Neither the name of the authors nor the names of its contributors14#    may be used to endorse or promote products derived from this software15#    without specific prior written permission.16#17# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"18# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE19# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE20# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE21# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR22# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF23# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS24# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN25# CONTRACT, STRICT LIABILITY, OR TORT26##############################################################################27'''28Import all essential functions and constants to re-export them here for easy29access.30 31This module contains also various pre-defined ISO 8601 format strings.32'''33from isodate.isodates import parse_date, date_isoformat34from isodate.isotime import parse_time, time_isoformat35from isodate.isodatetime import parse_datetime, datetime_isoformat36from isodate.isoduration import parse_duration, duration_isoformat37from isodate.isoerror import ISO8601Error38from isodate.isotzinfo import parse_tzinfo, tz_isoformat39from isodate.tzinfo import UTC, FixedOffset, LOCAL40from isodate.duration import Duration41from isodate.isostrf import strftime42from isodate.isostrf import DATE_BAS_COMPLETE, DATE_BAS_ORD_COMPLETE43from isodate.isostrf import DATE_BAS_WEEK, DATE_BAS_WEEK_COMPLETE44from isodate.isostrf import DATE_CENTURY, DATE_EXT_COMPLETE45from isodate.isostrf import DATE_EXT_ORD_COMPLETE, DATE_EXT_WEEK46from isodate.isostrf import DATE_EXT_WEEK_COMPLETE, DATE_YEAR47from isodate.isostrf import DATE_BAS_MONTH, DATE_EXT_MONTH48from isodate.isostrf import TIME_BAS_COMPLETE, TIME_BAS_MINUTE49from isodate.isostrf import TIME_EXT_COMPLETE, TIME_EXT_MINUTE50from isodate.isostrf import TIME_HOUR51from isodate.isostrf import TZ_BAS, TZ_EXT, TZ_HOUR52from isodate.isostrf import DT_BAS_COMPLETE, DT_EXT_COMPLETE53from isodate.isostrf import DT_BAS_ORD_COMPLETE, DT_EXT_ORD_COMPLETE54from isodate.isostrf import DT_BAS_WEEK_COMPLETE, DT_EXT_WEEK_COMPLETE55from isodate.isostrf import D_DEFAULT, D_WEEK, D_ALT_EXT, D_ALT_BAS56from isodate.isostrf import D_ALT_BAS_ORD, D_ALT_EXT_ORD57 58__all__ = ['parse_date', 'date_isoformat', 'parse_time', 'time_isoformat',59           'parse_datetime', 'datetime_isoformat', 'parse_duration',60           'duration_isoformat', 'ISO8601Error', 'parse_tzinfo',61           'tz_isoformat', 'UTC', 'FixedOffset', 'LOCAL', 'Duration',62           'strftime', 'DATE_BAS_COMPLETE', 'DATE_BAS_ORD_COMPLETE',63           'DATE_BAS_WEEK', 'DATE_BAS_WEEK_COMPLETE', 'DATE_CENTURY',64           'DATE_EXT_COMPLETE', 'DATE_EXT_ORD_COMPLETE', 'DATE_EXT_WEEK',65           'DATE_EXT_WEEK_COMPLETE', 'DATE_YEAR',66           'DATE_BAS_MONTH', 'DATE_EXT_MONTH',67           'TIME_BAS_COMPLETE', 'TIME_BAS_MINUTE', 'TIME_EXT_COMPLETE',68           'TIME_EXT_MINUTE', 'TIME_HOUR', 'TZ_BAS', 'TZ_EXT', 'TZ_HOUR',69           'DT_BAS_COMPLETE', 'DT_EXT_COMPLETE', 'DT_BAS_ORD_COMPLETE',70           'DT_EXT_ORD_COMPLETE', 'DT_BAS_WEEK_COMPLETE',71           'DT_EXT_WEEK_COMPLETE', 'D_DEFAULT', 'D_WEEK', 'D_ALT_EXT',72           'D_ALT_BAS', 'D_ALT_BAS_ORD', 'D_ALT_EXT_ORD']73 
codekingpro/portable-devtools · Team Ai