From b0e4ffbffa748892849abc24745e6247d3b74e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 1 Oct 2019 14:39:21 +0200 Subject: [PATCH] Datetime --- README.md | 10 +++++----- index.html | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index e3c16f2..fec5ad2 100644 --- a/README.md +++ b/README.md @@ -373,7 +373,7 @@ import re ### Special Sequences * **By default digits, whitespaces and alphanumerics from all alphabets are matched, unless `'flags=re.ASCII'` argument is used.** -* **Use capital letters for negation.** +* **Use capital letter for negation.** ```python '\d' == '[0-9]' # Digit '\s' == '[ \t\n\r\f\v]' # Whitespace @@ -652,10 +652,10 @@ from dateutil.tz import UTC, tzlocal, gettz ### Arithmetics ```python - = - - = ± - = ± - = */ + = - + = ± + = ± + = * ``` diff --git a/index.html b/index.html index 3c1c7e8..bf34912 100644 --- a/index.html +++ b/index.html @@ -476,7 +476,7 @@ to_exclusive = <range>.stop

Special Sequences

  • By default digits, whitespaces and alphanumerics from all alphabets are matched, unless 'flags=re.ASCII' argument is used.
  • -
  • Use capital letters for negation.
  • +
  • Use capital letter for negation.
'\d' == '[0-9]'                                # Digit
 '\s' == '[ \t\n\r\f\v]'                        # Whitespace
 '\w' == '[a-zA-Z0-9_]'                         # Alphanumeric
@@ -696,10 +696,10 @@ shuffle(<list>)
 
  • When parsing, '%z' also accepts '±HH:MM'.
  • For abbreviated weekday and month use '%a' and '%b'.
  • -

    Arithmetics

    <TD>     = <D/DT> -  <D/DT>
    -<D/DT>   = <D/DT> ±  <TD>
    -<TD>     = <TD>   ±  <TD>
    -<TD>     = <TD>   */ <real>
    +

    Arithmetics

    <TD>     = <D/DT> - <D/DT>
    +<D/DT>   = <D/DT> ± <TD>
    +<TD>     = <TD>   ± <TD>
    +<TD>     = <TD>   * <real>
     

    #Arguments

    Inside Function Call

    <function>(<positional_args>)                  # f(0, 0)