From 6d5dfc6af71f90ea491018994b19ab1a76d31499 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 4 Jul 2019 00:36:12 +0200 Subject: [PATCH] Datetime, Enum --- README.md | 5 ++++- index.html | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c6723d8..1a2616f 100644 --- a/README.md +++ b/README.md @@ -586,7 +586,7 @@ from dateutil.tz import UTC, tzlocal, gettz ### Timezone ```python = UTC # UTC timezone. London without DST. - = tzlocal() # Local timezone. + = tzlocal() # Local timezone. Also gettz(). = gettz('/') # Timezone from 'Continent/City_Name' str. ``` @@ -1177,6 +1177,9 @@ class (Enum): def get_member_names(cls): return [a.name for a in cls.__members__.values()] ``` +* **If there are no numeric values before auto(), it returns 1.** +* **Otherwise it returns an increment of last numeric value.** + ```python = . diff --git a/index.html b/index.html index b775f91..ae014a9 100644 --- a/index.html +++ b/index.html @@ -624,7 +624,7 @@ shuffle(<list>)

Timezone

<tzinfo> = UTC                              # UTC timezone. London without DST.
-<tzinfo> = tzlocal()                        # Local timezone.
+<tzinfo> = tzlocal()                        # Local timezone. Also gettz().
 <tzinfo> = gettz('<Cont.>/<City>')          # Timezone from 'Continent/City_Name' str.
 
<DTa>    = <DT>.astimezone(<tzinfo>)        # Datetime, converted to passed timezone.
@@ -1090,6 +1090,10 @@ Hello World!
     def get_member_names(cls):
         return [a.name for a in cls.__members__.values()]
 
+
    +
  • If there are no numeric values before auto(), it returns 1.
  • +
  • Otherwise it returns an increment of last numeric value.
  • +
<member> = <enum>.<member_name>
 <member> = <enum>['<member_name>']
 <member> = <enum>(<value>)