Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/isodate/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

26 statements  

1############################################################################## 

2# Copyright 2009, Gerhard Weis 

3# All rights reserved. 

4# 

5# Redistribution and use in source and binary forms, with or without 

6# 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 documentation 

12# and/or other materials provided with the distribution. 

13# * Neither the name of the authors nor the names of its contributors 

14# may be used to endorse or promote products derived from this software 

15# 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, THE 

19# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 

20# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 

21# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 

22# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 

23# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 

24# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 

25# CONTRACT, STRICT LIABILITY, OR TORT 

26############################################################################## 

27''' 

28Import all essential functions and constants to re-export them here for easy 

29access. 

30 

31This module contains also various pre-defined ISO 8601 format strings. 

32''' 

33from isodate.isodates import parse_date, date_isoformat 

34from isodate.isotime import parse_time, time_isoformat 

35from isodate.isodatetime import parse_datetime, datetime_isoformat 

36from isodate.isoduration import parse_duration, duration_isoformat 

37from isodate.isoerror import ISO8601Error 

38from isodate.isotzinfo import parse_tzinfo, tz_isoformat 

39from isodate.tzinfo import UTC, FixedOffset, LOCAL 

40from isodate.duration import Duration 

41from isodate.isostrf import strftime 

42from isodate.isostrf import DATE_BAS_COMPLETE, DATE_BAS_ORD_COMPLETE 

43from isodate.isostrf import DATE_BAS_WEEK, DATE_BAS_WEEK_COMPLETE 

44from isodate.isostrf import DATE_CENTURY, DATE_EXT_COMPLETE 

45from isodate.isostrf import DATE_EXT_ORD_COMPLETE, DATE_EXT_WEEK 

46from isodate.isostrf import DATE_EXT_WEEK_COMPLETE, DATE_YEAR 

47from isodate.isostrf import DATE_BAS_MONTH, DATE_EXT_MONTH 

48from isodate.isostrf import TIME_BAS_COMPLETE, TIME_BAS_MINUTE 

49from isodate.isostrf import TIME_EXT_COMPLETE, TIME_EXT_MINUTE 

50from isodate.isostrf import TIME_HOUR 

51from isodate.isostrf import TZ_BAS, TZ_EXT, TZ_HOUR 

52from isodate.isostrf import DT_BAS_COMPLETE, DT_EXT_COMPLETE 

53from isodate.isostrf import DT_BAS_ORD_COMPLETE, DT_EXT_ORD_COMPLETE 

54from isodate.isostrf import DT_BAS_WEEK_COMPLETE, DT_EXT_WEEK_COMPLETE 

55from isodate.isostrf import D_DEFAULT, D_WEEK, D_ALT_EXT, D_ALT_BAS 

56from isodate.isostrf import D_ALT_BAS_ORD, D_ALT_EXT_ORD 

57 

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']