<jupyter_start><jupyter_text>strftime<jupyter_code>x = datetime.datetime(2018, 6, 1)
print("%a = Weekday, short version:- ",x.strftime("%a"))
print("%A = Weekday, full version:- ",x.strftime("%A"))
print("%b = Month name, short version:- ",x.strftime("%b"))
print("%B = Month name, full version:- ",x.strftime("%B"))
print("%w = Weekday as a number 0-6, 0 is Sunday:- ",x.strftime("%w"))
print("%m = Day of month 01-31	:- ",x.strftime("%m"))
print("%y = Year, short version, without century:- ",x.strftime("%y"))
print("%Y = Year, full version:- ",x.strftime("%Y"))
print("%H = Hour 00-23:- ",x.strftime("%H"))
print("%I = Hour 00-12:- ",x.strftime("%I"))
print("%p = AM/PM:- ",x.strftime("%p"))
print("%M = Minute 00-59:- ",x.strftime("%M"))
print("%S = Second 00-59:- ",x.strftime("%S"))
print("%f = Microsecond 000000-999999:- ",x.strftime("%f"))
print("%z = UTC offset:- ",x.strftime("%z"))
print("%Z = Timezone:- ",x.strftime("%Z"))
print("%j = Day number of year 001-366:- ",x.strftime("%j"))
print("%U = Week number of year, Sunday as the first day of week, 00-53:- ",x.strftime("%U"))
print("%W = Week number of year, Monday as the first day of week, 00-53:- ",x.strftime("%W"))
print("%c = Local version of date and time:- ",x.strftime("%c"))
print("%x = Local version of date:- ",x.strftime("%x"))
print("%X = Local version of time:- ",x.strftime("%X"))
print("%% = A % character:- ",x.strftime("%%"))
print(datetime.datetime.ctime(datetime.datetime(2018, 5, 31)))<jupyter_output>Thu May 31 00:00:00 2018
{'fraction_non_alphanumeric': 0.2628797886393659, 'fraction_numerical': 0.0488771466314399, 'mean_word_length': 5.3924050632911396, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '306593', 'license': 'Apache-2.0', 'n_tokens_mistral': 619, 'n_tokens_neox': 534, 'n_words': 150, 'path': 'Date and time module.ipynb', 'repo_name': 'himanshu-1205/Python-Tutorial', 'size': '1514'}