Package: advanced-timedate
TimedateAdvanced date and time management library.Author:Axelle (LassaInora) VIANDIERLicense:GNU General Public License v3.0Version:3.0.5SummaryLinksSupported languagesTimedate functions and variablesset_languageFor Time and DateMethodsClass TimeTime initializationFormatsClass DateDate initializationMethodsFormatsLinksPersonal GitHubGitHub projectWebsite projectPypi projectSupported languages:English (en)Mandarin Chinese (ma)Hindi (hi)Spanish (sp)Bengali (be)French (fr)Russian (ru)Portuguese (po)Timedate functions:set_language()Change the default language of the library.[en, ma, hi, sp, be, fr, ru, po] are accepted.For Time and Date:Methods:(Property) recommended_formatReturn a recommended format for time or date with format()(Property) copy_timeReturn a copy of current value in Time class(Property) copy_dateReturn a copy of current value in Date class< / > / <= / >= / == / != comparatorReturn the result of comparaison with each comparator.int(value)Return the numbers of second since years 0.float(value)Return the numbers of second since years 0 with a precision of 24 decimal places.str(value)Return the current value with the recommended format.repr(value)Return the current value with "YYYY MM DD - hh:mm:ss.mls mcs nns pcs fms ats zps yts" formatiter(value) / list(value)Return each sub-value of current value.current value - other valueRemove the other value on current valuecurrent value + other valueAdd the other value on current valueClass Time:Time initialization.year: The number of years.month: The number of months.day: The number of days.hour: The number of hours.minute: The number of minutes.second: The number of seconds.milli: The number of milliseconds.micro: The number of microseconds.nano: The number of nanoseconds.pico: The number of picoseconds.femto: The number of femtosecondes.atto: The number of attosecondes.zepto: The number of zeptosecondes.yocto: The number of yoctosecondes.For each value, the default value is 0.Formats:_YYYY_: The years in 4 digits._YY_: The years in 2 digits._Y_: The years._MM_: The months in 2 digits._M_: The months_DD_: The days in 2 digits._D_: The day_hh_: The hours in 2 digits._h_: The hour_mm_: The minutes in 2 digits._m_: The minute_ss_: The secondes in 2 digits._s_: The seconde_mls_: The milliseconds in 3 digits._mcs_: The microseconds in 3 digits._nns_: The nanoseconds in 3 digits._pcs_: The picosecondes in 3 digits._fms_: The femtosecondes in 3 digits._ats_: The attosecondes in 3 digits._zps_: The zeptosecondes in 3 digits._yts_: The yoctosecondes in 3 digits._en-time_: The time in english format_ma-time_: The time in Mandarin format_hi-time_: The time in Hindi format_sp-time_: The time in Spanish format_be-time_: The time in Bengali format_fr-time_: The time in French format_ru-time_: The time in Russian format._po-time_: The time in Portuguese format.Class Date:Date initialization.year: The number of year. Default is 400.month: The number of month. Default is 1.day: The number of day. Default is 1.hour: The number of hour.minute: The number of minute.second: The number of second.millisecond: The number of millisecond.microsecond: The number of microsecond.nanosecond: The number of nanosecond.pico: The number of picoseconds.femto: The number of femtosecondes.atto: The number of attosecondes.zepto: The number of zeptosecondes.yocto: The number of yoctosecondes.timestamp: You can ignore all previously value and use a timestamp for initialize the Date.For each unspecified value, the default value is 0.Year cannot be less than 400.Methods:(Static Method) from_datetime(datetime_)Return a Date class create by datetime value(Class Method) NOW()Return the current Date(Class Method) its_a_leap_year(year)Return if year is a leap year.(Property) name_monthReturn the name of the month in the library langage (English in default).(Property) name_dayReturn the name of the day in the library langage (English in default).(Property) datetimeReturn a datetime with current value(Property) timestampReturn a timestamp with current value(Property) is_a_leap_yearReturn if current year is a leap year(Property) countdownReturn the remaining time until the date.(Property) chronoReturns the time passed since the date.Formats:_YYYY_: The years in 4 digits._YY_: The years in 2 digits._Y_: The years._MM_: The months in 2 digits._M_: The months_NM_: The name of the month._DD_: The days in 2 digits._D_: The day_ND_: The name of the day._hh_: The hours in 2 digits._h_: The hour_mm_: The minutes in 2 digits._m_: The minute_ss_: The secondes in 2 digits._s_: The seconde_mls_: The milliseconds in 3 digits._mcs_: The microseconds in 3 digits._nns_: The nanoseconds in 3 digits._pcs_: The picosecondes in 3 digits._fms_: The femtosecondes in 3 digits._ats_: The attosecondes in 3 digits._zps_: The zeptosecondes in 3 digits._yts_: The yoctosecondes in 3 digits._en-time_: The time in english format_ma-time_: The time in Mandarin format_hi-time_: The time in Hindi format_sp-time_: The time in Spanish format_be-time_: The time in Bengali format_fr-time_: The time in French format_ru-time_: The time in Russian format._po-time_: The time in Portuguese format.