<jupyter_start><jupyter_text><jupyter_code>import datetime
t = datetime.time(9, 30, 45, 100000)
print(t)
print(t.hour)
dt = datetime.datetime(2021, 10, 28, 12, 30, 45, 100000)
print(dt)
# print just the year
print(dt.year)
#prints current local datetime with a time zone of none
dt_today = datetime.datetime.today()
# gives option to introduce a timezone
dt_now = datetime.datetime.now()
# utcnow does not signify a timezone-aware datetime
# instead it offers utc info set to now but tcinfo still set to none
dt_utcnow = datetime.datetime.utcnow()
print(dt_today)
print(dt_now)
print(dt_utcnow)

dt_gmtime = datetime.datetime.gmtime()
print(dt_gmtime)
help(datetime)<jupyter_output>Help on module datetime:

NAME
    datetime - Fast implementation of the datetime type.

MODULE REFERENCE
    https://docs.python.org/3.7/library/datetime
    
    The following documentation is automatically generated from the Python
    source files.  It may be incomplete, incorrect or include features that
    are considered implementation detail and may vary between Python
    implementations.  When in doubt, consult the module reference at the
    location listed above.

CLASSES
    builtins.object
        date
            datetime
        time
        timedelta
        tzinfo
            timezone
    
    class date(builtins.object)
     |  date(year, month, day) --> date object
     |  
     |  Methods defined here:
     |  
     |  __add__(self, value, /)
     |      Return self+value.
     |  
     |  __eq__(self, value, /)
     |      Return self==value.
     |  
     |  __format__(...)
     |      Formats self with strftime.
     |  
     |  __ge__(self, value, /)
     |    [...]
{'fraction_non_alphanumeric': 0.08654416123295791, 'fraction_numerical': 0.01956135151155898, 'mean_word_length': 2.734513274336283, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '411017', 'license': 'Unlicense', 'n_tokens_mistral': 553, 'n_tokens_neox': 514, 'n_words': 162, 'path': 'Date_&_Time_2.ipynb', 'repo_name': 'Shakestick/HelloWorld', 'size': '1687'}