diff --git a/README.md b/README.md index 31be970..52c3061 100644 --- a/README.md +++ b/README.md @@ -519,7 +519,7 @@ from random import random, randint, choice, shuffle, gauss, seed = random() # A float inside [0, 1). = randint(from_inc, to_inc) # An int inside [from_inc, to_inc]. - = choice() # Keeps the list intact. + = choice() # Keeps the sequence intact. ``` ### Bin, Hex @@ -630,7 +630,7 @@ from dateutil.tz import UTC, tzlocal, gettz, datetime_exists, resolve_imaginary = DT.fromtimestamp(, ) # Aware datetime from seconds since the Epoch. ``` * **ISO strings come in following forms: `'YYYY-MM-DD'`, `'HH:MM:SS.ffffff[±]'`, or both separated by an arbitrary character. Offset is formatted as: `'HH:MM'`.** -* **Epoch on Unix systems is: `'1970-01-01 00:00 UTC'`, `'1970-01-01 01:00 CET'`, ...** +* **Python uses the Unix Epoch: `'1970-01-01 00:00 UTC'`, `'1970-01-01 01:00 CET'`, ...** ### Decode ```python diff --git a/index.html b/index.html index 311fdb2..db2699e 100644 --- a/index.html +++ b/index.html @@ -54,7 +54,7 @@
- +
@@ -472,7 +472,7 @@ to_exclusive = <range>.stop <float> = random() # A float inside [0, 1). <int> = randint(from_inc, to_inc) # An int inside [from_inc, to_inc]. -<el> = choice(<list>) # Keeps the list intact. +<el> = choice(<sequence>) # Keeps the sequence intact.

Bin, Hex

<int> = ±0b<bin>                         # Or: ±0x<hex>
@@ -561,7 +561,7 @@ to_exclusive   = <range>.stop
 
 
  • ISO strings come in following forms: 'YYYY-MM-DD', 'HH:MM:SS.ffffff[±<offset>]', or both separated by an arbitrary character. Offset is formatted as: 'HH:MM'.
  • -
  • Epoch on Unix systems is: '1970-01-01 00:00 UTC', '1970-01-01 01:00 CET', …
  • +
  • Python uses the Unix Epoch: '1970-01-01 00:00 UTC', '1970-01-01 01:00 CET', …

Decode

<str>    = <D/T/DT>.isoformat(sep='T')      # Also timespec='auto/hours/minutes/seconds'.
 <str>    = <D/T/DT>.strftime('<format>')    # Custom string representation.
@@ -2881,7 +2881,7 @@ $ pyinstaller script.py --add-data '<path>:.'