[{"data":1,"prerenderedAt":6188},["ShallowReactive",2],{"tutorials-python-how-to":3,"category-items-python-how-to":600,"content-/python-how-to/format-dates":601},[4,22,31,40,49,58,67,76,86,94,103,112,121,130,139,148,158,167,176,185,194,203,212,222,231,240,249,258,267,276,285,297,306,315,324,333,342,351,362,371,380,389,398,407,418,427,436,445,454,463,472,483,492,501,510,519,528,539,548,557,566,575,584,593],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python-how-to/string-manipulation","python-how-to",false,"","String Manipulation","Learn essential string manipulation techniques in Python","string-manipulation",1,true,"pi pi-folder","markdown","content:python-how-to:1.string-manipulation.md","content","python-how-to/1.string-manipulation.md","python-how-to/1.string-manipulation","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python-how-to/split-join-strings","Split and Join Strings","Learn how to split strings into lists and join lists back into strings in Python","split-join-strings",2,"content:python-how-to:2.split-join-strings.md","python-how-to/2.split-join-strings.md","python-how-to/2.split-join-strings",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python-how-to/remove-whitespace","Remove Whitespace","Learn how to clean up and remove unwanted whitespace from strings in Python","remove-whitespace",3,"content:python-how-to:3.remove-whitespace.md","python-how-to/3.remove-whitespace.md","python-how-to/3.remove-whitespace",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python-how-to/find-replace-text","Find and Replace Text","Learn how to search for and replace text within strings in Python","find-replace-text",4,"content:python-how-to:4.find-replace-text.md","python-how-to/4.find-replace-text.md","python-how-to/4.find-replace-text",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python-how-to/check-string-content","Check String Content","Learn how to validate and check the content of strings in Python","check-string-content",5,"content:python-how-to:5.check-string-content.md","python-how-to/5.check-string-content.md","python-how-to/5.check-string-content",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python-how-to/format-strings","Format Strings","Learn how to format strings in Python using f-strings and format() method","format-strings",6,"content:python-how-to:6.format-strings.md","python-how-to/6.format-strings.md","python-how-to/6.format-strings",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python-how-to/unicode-special-chars","Handle Unicode and Special Characters","Learn how to work with Unicode and special characters in Python strings","unicode-special-chars",7,"content:python-how-to:7.unicode-special-chars.md","python-how-to/7.unicode-special-chars.md","python-how-to/7.unicode-special-chars",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python-how-to/list-operations","List Operations","Learn essential operations for working with lists in Python","list-operations",8,"content:python-how-to:8.list-operations.md","python-how-to/8.list-operations.md","python-how-to/8.list-operations",[86,94,103,112,121,130,139],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":81,"_type":15,"_id":91,"_source":17,"_file":92,"_stem":93,"_extension":20},"/python-how-to/sort-lists","Sort Lists","Learn how to sort lists in Python using different methods and custom sorting","sort-lists","content:python-how-to:9.sort-lists.md","python-how-to/9.sort-lists.md","python-how-to/9.sort-lists",{"_path":95,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":96,"description":97,"slug":98,"parentId":77,"order":99,"_type":15,"_id":100,"_source":17,"_file":101,"_stem":102,"_extension":20},"/python-how-to/remove-duplicates","Remove Duplicates","Learn how to remove duplicate elements from lists in Python","remove-duplicates",10,"content:python-how-to:10.remove-duplicates.md","python-how-to/10.remove-duplicates.md","python-how-to/10.remove-duplicates",{"_path":104,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":105,"description":106,"slug":107,"parentId":77,"order":108,"_type":15,"_id":109,"_source":17,"_file":110,"_stem":111,"_extension":20},"/python-how-to/filter-lists","Filter Lists","Learn how to filter lists in Python using different methods","filter-lists",11,"content:python-how-to:11.filter-lists.md","python-how-to/11.filter-lists.md","python-how-to/11.filter-lists",{"_path":113,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":114,"description":115,"slug":116,"parentId":77,"order":117,"_type":15,"_id":118,"_source":17,"_file":119,"_stem":120,"_extension":20},"/python-how-to/combine-lists","Combine Lists","Learn different methods to combine lists in Python","combine-lists",12,"content:python-how-to:12.combine-lists.md","python-how-to/12.combine-lists.md","python-how-to/12.combine-lists",{"_path":122,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":123,"description":124,"slug":125,"parentId":77,"order":126,"_type":15,"_id":127,"_source":17,"_file":128,"_stem":129,"_extension":20},"/python-how-to/list-comprehensions","Use List Comprehensions","Learn how to create and transform lists efficiently using Python's list comprehension syntax","list-comprehensions",13,"content:python-how-to:13.list-comprehensions.md","python-how-to/13.list-comprehensions.md","python-how-to/13.list-comprehensions",{"_path":131,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":132,"description":133,"slug":134,"parentId":77,"order":135,"_type":15,"_id":136,"_source":17,"_file":137,"_stem":138,"_extension":20},"/python-how-to/nested-lists","Work with Nested Lists","Learn how to work with nested lists (2D arrays) in Python","nested-lists",14,"content:python-how-to:14.nested-lists.md","python-how-to/14.nested-lists.md","python-how-to/14.nested-lists",{"_path":140,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":141,"description":142,"slug":143,"parentId":77,"order":144,"_type":15,"_id":145,"_source":17,"_file":146,"_stem":147,"_extension":20},"/python-how-to/enumerate-zip","Use enumerate() and zip()","Learn how to use enumerate() and zip() for efficient iteration in Python","enumerate-zip",15,"content:python-how-to:15.enumerate-zip.md","python-how-to/15.enumerate-zip.md","python-how-to/15.enumerate-zip",{"_path":149,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":150,"description":151,"slug":152,"order":153,"isParent":13,"icon":14,"_type":15,"_id":154,"_source":17,"_file":155,"_stem":156,"_extension":20,"children":157,"expanded":13},"/python-how-to/dictionary-operations","Dictionary Operations","Learn essential operations for working with dictionaries in Python","dictionary-operations",16,"content:python-how-to:16.dictionary-operations.md","python-how-to/16.dictionary-operations.md","python-how-to/16.dictionary-operations",[158,167,176,185,194,203],{"_path":159,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":160,"description":161,"slug":162,"parentId":149,"order":163,"_type":15,"_id":164,"_source":17,"_file":165,"_stem":166,"_extension":20},"/python-how-to/merge-dictionaries","Merge Dictionaries","Learn different methods to merge dictionaries in Python","merge-dictionaries",17,"content:python-how-to:17.merge-dictionaries.md","python-how-to/17.merge-dictionaries.md","python-how-to/17.merge-dictionaries",{"_path":168,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":169,"description":170,"slug":171,"parentId":149,"order":172,"_type":15,"_id":173,"_source":17,"_file":174,"_stem":175,"_extension":20},"/python-how-to/sort-dictionaries","Sort Dictionaries","Learn how to sort dictionaries by keys or values in Python","sort-dictionaries",18,"content:python-how-to:18.sort-dictionaries.md","python-how-to/18.sort-dictionaries.md","python-how-to/18.sort-dictionaries",{"_path":177,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":178,"description":179,"slug":180,"parentId":149,"order":181,"_type":15,"_id":182,"_source":17,"_file":183,"_stem":184,"_extension":20},"/python-how-to/filter-dictionaries","Filter Dictionaries","Learn how to filter dictionaries based on keys or values in Python","filter-dictionaries",19,"content:python-how-to:19.filter-dictionaries.md","python-how-to/19.filter-dictionaries.md","python-how-to/19.filter-dictionaries",{"_path":186,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":187,"description":188,"slug":189,"parentId":149,"order":190,"_type":15,"_id":191,"_source":17,"_file":192,"_stem":193,"_extension":20},"/python-how-to/handle-missing-keys","Handle Missing Keys","Learn safe ways to access dictionary keys and handle missing values","handle-missing-keys",20,"content:python-how-to:20.handle-missing-keys.md","python-how-to/20.handle-missing-keys.md","python-how-to/20.handle-missing-keys",{"_path":195,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":196,"description":197,"slug":198,"parentId":149,"order":199,"_type":15,"_id":200,"_source":17,"_file":201,"_stem":202,"_extension":20},"/python-how-to/dictionary-comprehensions","Use Dictionary Comprehensions","Learn how to create dictionaries efficiently using comprehensions","dictionary-comprehensions",21,"content:python-how-to:21.dictionary-comprehensions.md","python-how-to/21.dictionary-comprehensions.md","python-how-to/21.dictionary-comprehensions",{"_path":204,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":205,"description":206,"slug":207,"parentId":149,"order":208,"_type":15,"_id":209,"_source":17,"_file":210,"_stem":211,"_extension":20},"/python-how-to/convert-lists-dictionaries","Convert Between Lists and Dictionaries","Learn how to transform data between lists and dictionaries in Python","convert-lists-dictionaries",22,"content:python-how-to:22.convert-lists-dictionaries.md","python-how-to/22.convert-lists-dictionaries.md","python-how-to/22.convert-lists-dictionaries",{"_path":213,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":214,"description":215,"slug":216,"order":217,"isParent":13,"icon":14,"_type":15,"_id":218,"_source":17,"_file":219,"_stem":220,"_extension":20,"children":221,"expanded":13},"/python-how-to/file-operations","File Operations","Learn essential file operations in Python for reading, writing, and managing files","file-operations",23,"content:python-how-to:23.file-operations.md","python-how-to/23.file-operations.md","python-how-to/23.file-operations",[222,231,240,249,258,267,276],{"_path":223,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":224,"description":225,"slug":226,"parentId":213,"order":227,"_type":15,"_id":228,"_source":17,"_file":229,"_stem":230,"_extension":20},"/python-how-to/read-text-files","Read Text Files","Learn how to read text files in Python using different methods","read-text-files",24,"content:python-how-to:24.read-text-files.md","python-how-to/24.read-text-files.md","python-how-to/24.read-text-files",{"_path":232,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":233,"description":234,"slug":235,"parentId":213,"order":236,"_type":15,"_id":237,"_source":17,"_file":238,"_stem":239,"_extension":20},"/python-how-to/write-to-files","Write to Files","Learn how to write and create files in Python using different methods","write-to-files",25,"content:python-how-to:25.write-to-files.md","python-how-to/25.write-to-files.md","python-how-to/25.write-to-files",{"_path":241,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":242,"description":243,"slug":244,"parentId":213,"order":245,"_type":15,"_id":246,"_source":17,"_file":247,"_stem":248,"_extension":20},"/python-how-to/work-csv-files","Work with CSV Files","Learn how to read and write CSV files in Python using the csv module","work-csv-files",26,"content:python-how-to:26.work-csv-files.md","python-how-to/26.work-csv-files.md","python-how-to/26.work-csv-files",{"_path":250,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":251,"description":252,"slug":253,"parentId":213,"order":254,"_type":15,"_id":255,"_source":17,"_file":256,"_stem":257,"_extension":20},"/python-how-to/handle-file-paths","Handle File Paths","Learn how to work with file and directory paths in Python using pathlib and os modules","handle-file-paths",27,"content:python-how-to:27.handle-file-paths.md","python-how-to/27.handle-file-paths.md","python-how-to/27.handle-file-paths",{"_path":259,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":260,"description":261,"slug":262,"parentId":213,"order":263,"_type":15,"_id":264,"_source":17,"_file":265,"_stem":266,"_extension":20},"/python-how-to/work-json-files","Work with JSON Files","Learn how to read and write JSON files in Python using the json module","work-json-files",28,"content:python-how-to:28.work-json-files.md","python-how-to/28.work-json-files.md","python-how-to/28.work-json-files",{"_path":268,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":269,"description":270,"slug":271,"parentId":213,"order":272,"_type":15,"_id":273,"_source":17,"_file":274,"_stem":275,"_extension":20},"/python-how-to/handle-binary-files","Handle Binary Files","Learn how to work with binary files in Python for images, data, and other non-text content","handle-binary-files",29,"content:python-how-to:29.handle-binary-files.md","python-how-to/29.handle-binary-files.md","python-how-to/29.handle-binary-files",{"_path":277,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":278,"description":279,"slug":280,"parentId":213,"order":281,"_type":15,"_id":282,"_source":17,"_file":283,"_stem":284,"_extension":20},"/python-how-to/use-context-managers","Use Context Managers","Learn how to use context managers for safe resource handling in Python","use-context-managers",30,"content:python-how-to:30.use-context-managers.md","python-how-to/30.use-context-managers.md","python-how-to/30.use-context-managers",{"_path":286,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":287,"description":288,"slug":289,"parentId":290,"order":291,"isParent":13,"icon":292,"_type":15,"_id":293,"_source":17,"_file":294,"_stem":295,"_extension":20,"children":296,"expanded":13},"/python-how-to/date-and-time","Date and Time","Master Python's date and time handling with datetime, time zones, formatting, and calculations","date-and-time","/python-how-to",31,"pi pi-calendar","content:python-how-to:31.date-and-time.md","python-how-to/31.date-and-time.md","python-how-to/31.date-and-time",[297,306,315,324,333,342],{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":286,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python-how-to/get-current-datetime","Get Current Date/Time","Learn how to get current date, time, and timestamps using Python's datetime module","get-current-datetime",32,"content:python-how-to:32.get-current-datetime.md","python-how-to/32.get-current-datetime.md","python-how-to/32.get-current-datetime",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":286,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python-how-to/format-dates","Format Dates","Master date formatting with strftime, custom formats, and locale-aware formatting for user-friendly displays","format-dates",33,"content:python-how-to:33.format-dates.md","python-how-to/33.format-dates.md","python-how-to/33.format-dates",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":286,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python-how-to/calculate-date-differences","Calculate Date Differences","Learn to calculate time differences, durations, and intervals using Python's timedelta for scheduling and analytics","calculate-date-differences",34,"content:python-how-to:34.calculate-date-differences.md","python-how-to/34.calculate-date-differences.md","python-how-to/34.calculate-date-differences",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":286,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python-how-to/parse-date-strings","Parse Date Strings","Convert text dates into Python datetime objects using strptime, handle multiple formats, and validate date input","parse-date-strings",35,"content:python-how-to:35.parse-date-strings.md","python-how-to/35.parse-date-strings.md","python-how-to/35.parse-date-strings",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":286,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python-how-to/handle-timezones","Handle Timezones","Master timezone handling with zoneinfo, UTC conversions, and timezone-aware datetime objects for global applications","handle-timezones",36,"content:python-how-to:36.handle-timezones.md","python-how-to/36.handle-timezones.md","python-how-to/36.handle-timezones",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":286,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python-how-to/work-with-timestamps","Work with Timestamps","Master Unix timestamps in Python - convert between datetime objects and timestamps for APIs, databases, and system integration","work-with-timestamps",37,"content:python-how-to:37.work-with-timestamps.md","python-how-to/37.work-with-timestamps.md","python-how-to/37.work-with-timestamps",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":290,"order":356,"isParent":13,"icon":357,"_type":15,"_id":358,"_source":17,"_file":359,"_stem":360,"_extension":20,"children":361},"/python-how-to/error-handling","Error Handling","Learn Python's error handling with try/except, custom exceptions, debugging, logging, and retry logic for robust applications","error-handling",38,"pi pi-exclamation-triangle","content:python-how-to:38.error-handling.md","python-how-to/38.error-handling.md","python-how-to/38.error-handling",[362,371,380,389,398],{"_path":363,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":364,"description":365,"slug":366,"parentId":352,"order":367,"_type":15,"_id":368,"_source":17,"_file":369,"_stem":370,"_extension":20},"/python-how-to/handle-exceptions","Handle Exceptions","Master try/except blocks, multiple exception handling, and finally clauses for robust error handling in Python","handle-exceptions",39,"content:python-how-to:39.handle-exceptions.md","python-how-to/39.handle-exceptions.md","python-how-to/39.handle-exceptions",{"_path":372,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":373,"description":374,"slug":375,"parentId":352,"order":376,"_type":15,"_id":377,"_source":17,"_file":378,"_stem":379,"_extension":20},"/python-how-to/create-custom-exceptions","Create Custom Exceptions","Learn to create custom exception classes in Python for specific error handling and better code organization","create-custom-exceptions",40,"content:python-how-to:40.create-custom-exceptions.md","python-how-to/40.create-custom-exceptions.md","python-how-to/40.create-custom-exceptions",{"_path":381,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":382,"description":383,"slug":384,"parentId":352,"order":385,"_type":15,"_id":386,"_source":17,"_file":387,"_stem":388,"_extension":20},"/python-how-to/debug-code","Debug Code","Learn Python debugging techniques using print statements, the debugger, and tools to find and fix code issues","debug-code",41,"content:python-how-to:41.debug-code.md","python-how-to/41.debug-code.md","python-how-to/41.debug-code",{"_path":390,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":391,"description":392,"slug":393,"parentId":352,"order":394,"_type":15,"_id":395,"_source":17,"_file":396,"_stem":397,"_extension":20},"/python-how-to/use-logging","Use Logging","Learn Python's logging module for tracking application behavior, errors, and debugging information","use-logging",42,"content:python-how-to:42.use-logging.md","python-how-to/42.use-logging.md","python-how-to/42.use-logging",{"_path":399,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":400,"description":401,"slug":402,"parentId":352,"order":403,"_type":15,"_id":404,"_source":17,"_file":405,"_stem":406,"_extension":20},"/python-how-to/implement-retry-logic","Implement Retry Logic","Learn to implement retry mechanisms in Python for handling temporary failures and building resilient applications","implement-retry-logic",43,"content:python-how-to:43.implement-retry-logic.md","python-how-to/43.implement-retry-logic.md","python-how-to/43.implement-retry-logic",{"_path":408,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":409,"description":410,"slug":411,"parentId":290,"order":412,"isParent":13,"icon":413,"_type":15,"_id":414,"_source":17,"_file":415,"_stem":416,"_extension":20,"children":417},"/python-how-to/functions-and-modules","Functions and Modules","Learn Python functions, modules, and code organization for building reusable, maintainable applications","functions-and-modules",44,"pi pi-box","content:python-how-to:44.functions-and-modules.md","python-how-to/44.functions-and-modules.md","python-how-to/44.functions-and-modules",[418,427,436,445,454,463],{"_path":419,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":420,"description":421,"slug":422,"parentId":408,"order":423,"_type":15,"_id":424,"_source":17,"_file":425,"_stem":426,"_extension":20},"/python-how-to/write-functions","Write Functions","Learn to create Python functions with parameters, return values, and documentation for reusable code","write-functions",45,"content:python-how-to:45.write-functions.md","python-how-to/45.write-functions.md","python-how-to/45.write-functions",{"_path":428,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":429,"description":430,"slug":431,"parentId":408,"order":432,"_type":15,"_id":433,"_source":17,"_file":434,"_stem":435,"_extension":20},"/python-how-to/use-args-kwargs","Use *args and **kwargs","Learn to use *args and **kwargs for flexible function arguments in Python","use-args-kwargs",46,"content:python-how-to:46.use-args-kwargs.md","python-how-to/46.use-args-kwargs.md","python-how-to/46.use-args-kwargs",{"_path":437,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":438,"description":439,"slug":440,"parentId":408,"order":441,"_type":15,"_id":442,"_source":17,"_file":443,"_stem":444,"_extension":20},"/python-how-to/create-decorators","Create Decorators","Learn to create and use Python decorators to enhance function behavior and add functionality","create-decorators",47,"content:python-how-to:47.create-decorators.md","python-how-to/47.create-decorators.md","python-how-to/47.create-decorators",{"_path":446,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":447,"description":448,"slug":449,"parentId":408,"order":450,"_type":15,"_id":451,"_source":17,"_file":452,"_stem":453,"_extension":20},"/python-how-to/use-generators","Use Generators","Learn to create memory-efficient generators with yield for processing large datasets and sequences","use-generators",48,"content:python-how-to:48.use-generators.md","python-how-to/48.use-generators.md","python-how-to/48.use-generators",{"_path":455,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":456,"description":457,"slug":458,"parentId":408,"order":459,"_type":15,"_id":460,"_source":17,"_file":461,"_stem":462,"_extension":20},"/python-how-to/work-modules-packages","Work with Modules and Packages","Learn to organize Python code with modules and packages, and use imports effectively","work-modules-packages",49,"content:python-how-to:49.work-modules-packages.md","python-how-to/49.work-modules-packages.md","python-how-to/49.work-modules-packages",{"_path":464,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":465,"description":466,"slug":467,"parentId":408,"order":468,"_type":15,"_id":469,"_source":17,"_file":470,"_stem":471,"_extension":20},"/python-how-to/create-virtual-environments","Create Virtual Environments","Learn to create and manage Python virtual environments for project dependency isolation","create-virtual-environments",50,"content:python-how-to:50.create-virtual-environments.md","python-how-to/50.create-virtual-environments.md","python-how-to/50.create-virtual-environments",{"_path":473,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":474,"description":475,"slug":476,"parentId":290,"order":477,"isParent":13,"icon":478,"_type":15,"_id":479,"_source":17,"_file":480,"_stem":481,"_extension":20,"children":482},"/python-how-to/data-processing","Data Processing","Learn Python data processing techniques including regex, APIs, databases, and large file handling","data-processing",51,"pi pi-database","content:python-how-to:51.data-processing.md","python-how-to/51.data-processing.md","python-how-to/51.data-processing",[483,492,501,510,519],{"_path":484,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":485,"description":486,"slug":487,"parentId":473,"order":488,"_type":15,"_id":489,"_source":17,"_file":490,"_stem":491,"_extension":20},"/python-how-to/work-regular-expressions","Work with Regular Expressions","Learn to use Python's re module for pattern matching, text extraction, and data validation","work-regular-expressions",52,"content:python-how-to:52.work-regular-expressions.md","python-how-to/52.work-regular-expressions.md","python-how-to/52.work-regular-expressions",{"_path":493,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":494,"description":495,"slug":496,"parentId":473,"order":497,"_type":15,"_id":498,"_source":17,"_file":499,"_stem":500,"_extension":20},"/python-how-to/parse-xml-html","Parse XML and HTML","Learn to extract data from XML and HTML documents using Python's built-in parsing tools","parse-xml-html",53,"content:python-how-to:53.parse-xml-html.md","python-how-to/53.parse-xml-html.md","python-how-to/53.parse-xml-html",{"_path":502,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":503,"description":504,"slug":505,"parentId":473,"order":506,"_type":15,"_id":507,"_source":17,"_file":508,"_stem":509,"_extension":20},"/python-how-to/handle-api-requests","Handle API Requests","Learn to fetch and process data from web APIs using Python's urllib and external requests library","handle-api-requests",54,"content:python-how-to:54.handle-api-requests.md","python-how-to/54.handle-api-requests.md","python-how-to/54.handle-api-requests",{"_path":511,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":512,"description":513,"slug":514,"parentId":473,"order":515,"_type":15,"_id":516,"_source":17,"_file":517,"_stem":518,"_extension":20},"/python-how-to/work-databases","Work with Databases","Learn to connect to and query SQL databases using Python's sqlite3 and database techniques","work-databases",55,"content:python-how-to:55.work-databases.md","python-how-to/55.work-databases.md","python-how-to/55.work-databases",{"_path":520,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":521,"description":522,"slug":523,"parentId":473,"order":524,"_type":15,"_id":525,"_source":17,"_file":526,"_stem":527,"_extension":20},"/python-how-to/process-large-files","Process Large Files","Learn memory-efficient techniques for handling large files and datasets in Python","process-large-files",56,"content:python-how-to:56.process-large-files.md","python-how-to/56.process-large-files.md","python-how-to/56.process-large-files",{"_path":529,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":530,"description":531,"slug":532,"parentId":290,"order":533,"isParent":13,"icon":534,"_type":15,"_id":535,"_source":17,"_file":536,"_stem":537,"_extension":20,"children":538},"/python-how-to/best-practices","Best Practices","Learn Python best practices for writing clean, maintainable, and efficient code","best-practices",57,"pi pi-star","content:python-how-to:57.best-practices.md","python-how-to/57.best-practices.md","python-how-to/57.best-practices",[539,548,557,566,575,584],{"_path":540,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":541,"description":542,"slug":543,"parentId":529,"order":544,"_type":15,"_id":545,"_source":17,"_file":546,"_stem":547,"_extension":20},"/python-how-to/structure-code","Structure Your Code","Learn to organize Python code with proper module structure, functions, and classes","structure-code",58,"content:python-how-to:58.structure-code.md","python-how-to/58.structure-code.md","python-how-to/58.structure-code",{"_path":549,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":550,"description":551,"slug":552,"parentId":529,"order":553,"_type":15,"_id":554,"_source":17,"_file":555,"_stem":556,"_extension":20},"/python-how-to/write-clean-code","Write Clean Code","Learn to write readable, maintainable Python code with proper naming, comments, and clear logic","write-clean-code",59,"content:python-how-to:59.write-clean-code.md","python-how-to/59.write-clean-code.md","python-how-to/59.write-clean-code",{"_path":558,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":559,"description":560,"slug":561,"parentId":529,"order":562,"_type":15,"_id":563,"_source":17,"_file":564,"_stem":565,"_extension":20},"/python-how-to/optimize-performance","Optimize Performance","Learn to identify and fix performance bottlenecks in Python code for faster execution","optimize-performance",60,"content:python-how-to:60.optimize-performance.md","python-how-to/60.optimize-performance.md","python-how-to/60.optimize-performance",{"_path":567,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":568,"description":569,"slug":570,"parentId":529,"order":571,"_type":15,"_id":572,"_source":17,"_file":573,"_stem":574,"_extension":20},"/python-how-to/write-unit-tests","Write Unit Tests","Learn to create reliable unit tests to verify your Python code works correctly and catch bugs early","write-unit-tests",61,"content:python-how-to:61.write-unit-tests.md","python-how-to/61.write-unit-tests.md","python-how-to/61.write-unit-tests",{"_path":576,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":577,"description":578,"slug":579,"parentId":529,"order":580,"_type":15,"_id":581,"_source":17,"_file":582,"_stem":583,"_extension":20},"/python-how-to/document-code","Document Your Code","Learn to write clear documentation and helpful comments for your Python code","document-code",62,"content:python-how-to:62.document-code.md","python-how-to/62.document-code.md","python-how-to/62.document-code",{"_path":585,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":586,"description":587,"slug":588,"parentId":529,"order":589,"_type":15,"_id":590,"_source":17,"_file":591,"_stem":592,"_extension":20},"/python-how-to/use-type-hints","Use Type Hints","Learn to add type annotations to Python code for better clarity, tooling support, and error detection","use-type-hints",63,"content:python-how-to:63.use-type-hints.md","python-how-to/63.use-type-hints.md","python-how-to/63.use-type-hints",{"_path":290,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":594,"description":595,"slug":6,"order":596,"icon":14,"_type":15,"_id":597,"_source":17,"_file":598,"_stem":599,"_extension":20,"expanded":13},"Python How-To Guide","Practical Python tutorials for common programming tasks. Learn step-by-step solutions for string manipulation, file operations, data processing, and more with real-world examples.",0,"content:python-how-to:index.md","python-how-to/index.md","python-how-to/index",[306],{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":286,"order":311,"body":602,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},{"type":603,"children":604,"toc":6166},"root",[605,614,629,963,970,975,1117,1124,1634,1640,2079,2085,2465,2471,2476,2482,2772,2778,3010,3016,3021,3027,3399,3405,3897,3903,3908,3914,4466,4472,5257,5263,5998,6004,6135,6141,6146,6160],{"type":606,"tag":607,"props":608,"children":610},"element","h1",{"id":609},"formatting-dates-and-times",[611],{"type":612,"value":613},"text","🎨 Formatting Dates and Times",{"type":606,"tag":615,"props":616,"children":617},"p",{},[618,620,627],{"type":612,"value":619},"Formatting dates and times for display is essential for user interfaces, reports, and data presentation. Python's ",{"type":606,"tag":621,"props":622,"children":624},"code",{"className":623},[],[625],{"type":612,"value":626},"strftime()",{"type":612,"value":628}," method provides powerful formatting capabilities using format codes to create exactly the display you need.",{"type":606,"tag":630,"props":631,"children":632},"code-try",{},[633],{"type":606,"tag":634,"props":635,"children":639},"pre",{"className":636,"code":637,"language":638,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","from datetime import datetime\n\nnow = datetime.now()\n\n# Different formatting styles\nprint(f\"ISO format: {now.strftime('%Y-%m-%d %H:%M:%S')}\")\nprint(f\"US format: {now.strftime('%m/%d/%Y %I:%M %p')}\")\nprint(f\"Readable: {now.strftime('%B %d, %Y at %I:%M %p')}\")\nprint(f\"Short: {now.strftime('%b %d, %y')}\")\n","python",[640],{"type":606,"tag":621,"props":641,"children":642},{"__ignoreMap":8},[643,670,678,696,703,712,782,840,898],{"type":606,"tag":644,"props":645,"children":647},"span",{"class":646,"line":12},"line",[648,654,660,665],{"type":606,"tag":644,"props":649,"children":651},{"style":650},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[652],{"type":612,"value":653},"from",{"type":606,"tag":644,"props":655,"children":657},{"style":656},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[658],{"type":612,"value":659}," datetime ",{"type":606,"tag":644,"props":661,"children":662},{"style":650},[663],{"type":612,"value":664},"import",{"type":606,"tag":644,"props":666,"children":667},{"style":656},[668],{"type":612,"value":669}," datetime\n",{"type":606,"tag":644,"props":671,"children":672},{"class":646,"line":27},[673],{"type":606,"tag":644,"props":674,"children":675},{"emptyLinePlaceholder":13},[676],{"type":612,"value":677},"\n",{"type":606,"tag":644,"props":679,"children":680},{"class":646,"line":36},[681,686,691],{"type":606,"tag":644,"props":682,"children":683},{"style":656},[684],{"type":612,"value":685},"now ",{"type":606,"tag":644,"props":687,"children":688},{"style":650},[689],{"type":612,"value":690},"=",{"type":606,"tag":644,"props":692,"children":693},{"style":656},[694],{"type":612,"value":695}," datetime.now()\n",{"type":606,"tag":644,"props":697,"children":698},{"class":646,"line":45},[699],{"type":606,"tag":644,"props":700,"children":701},{"emptyLinePlaceholder":13},[702],{"type":612,"value":677},{"type":606,"tag":644,"props":704,"children":705},{"class":646,"line":54},[706],{"type":606,"tag":644,"props":707,"children":709},{"style":708},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[710],{"type":612,"value":711},"# Different formatting styles\n",{"type":606,"tag":644,"props":713,"children":714},{"class":646,"line":63},[715,721,726,731,737,742,747,752,757,762,767,772,777],{"type":606,"tag":644,"props":716,"children":718},{"style":717},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[719],{"type":612,"value":720},"print",{"type":606,"tag":644,"props":722,"children":723},{"style":656},[724],{"type":612,"value":725},"(",{"type":606,"tag":644,"props":727,"children":728},{"style":650},[729],{"type":612,"value":730},"f",{"type":606,"tag":644,"props":732,"children":734},{"style":733},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[735],{"type":612,"value":736},"\"ISO format: ",{"type":606,"tag":644,"props":738,"children":739},{"style":717},[740],{"type":612,"value":741},"{",{"type":606,"tag":644,"props":743,"children":744},{"style":656},[745],{"type":612,"value":746},"now.strftime(",{"type":606,"tag":644,"props":748,"children":749},{"style":733},[750],{"type":612,"value":751},"'%Y-%m-",{"type":606,"tag":644,"props":753,"children":754},{"style":717},[755],{"type":612,"value":756},"%d",{"type":606,"tag":644,"props":758,"children":759},{"style":733},[760],{"type":612,"value":761}," %H:%M:%S'",{"type":606,"tag":644,"props":763,"children":764},{"style":656},[765],{"type":612,"value":766},")",{"type":606,"tag":644,"props":768,"children":769},{"style":717},[770],{"type":612,"value":771},"}",{"type":606,"tag":644,"props":773,"children":774},{"style":733},[775],{"type":612,"value":776},"\"",{"type":606,"tag":644,"props":778,"children":779},{"style":656},[780],{"type":612,"value":781},")\n",{"type":606,"tag":644,"props":783,"children":784},{"class":646,"line":72},[785,789,793,797,802,806,810,815,819,824,828,832,836],{"type":606,"tag":644,"props":786,"children":787},{"style":717},[788],{"type":612,"value":720},{"type":606,"tag":644,"props":790,"children":791},{"style":656},[792],{"type":612,"value":725},{"type":606,"tag":644,"props":794,"children":795},{"style":650},[796],{"type":612,"value":730},{"type":606,"tag":644,"props":798,"children":799},{"style":733},[800],{"type":612,"value":801},"\"US format: ",{"type":606,"tag":644,"props":803,"children":804},{"style":717},[805],{"type":612,"value":741},{"type":606,"tag":644,"props":807,"children":808},{"style":656},[809],{"type":612,"value":746},{"type":606,"tag":644,"props":811,"children":812},{"style":733},[813],{"type":612,"value":814},"'%m/",{"type":606,"tag":644,"props":816,"children":817},{"style":717},[818],{"type":612,"value":756},{"type":606,"tag":644,"props":820,"children":821},{"style":733},[822],{"type":612,"value":823},"/%Y %I:%M %p'",{"type":606,"tag":644,"props":825,"children":826},{"style":656},[827],{"type":612,"value":766},{"type":606,"tag":644,"props":829,"children":830},{"style":717},[831],{"type":612,"value":771},{"type":606,"tag":644,"props":833,"children":834},{"style":733},[835],{"type":612,"value":776},{"type":606,"tag":644,"props":837,"children":838},{"style":656},[839],{"type":612,"value":781},{"type":606,"tag":644,"props":841,"children":842},{"class":646,"line":81},[843,847,851,855,860,864,868,873,877,882,886,890,894],{"type":606,"tag":644,"props":844,"children":845},{"style":717},[846],{"type":612,"value":720},{"type":606,"tag":644,"props":848,"children":849},{"style":656},[850],{"type":612,"value":725},{"type":606,"tag":644,"props":852,"children":853},{"style":650},[854],{"type":612,"value":730},{"type":606,"tag":644,"props":856,"children":857},{"style":733},[858],{"type":612,"value":859},"\"Readable: ",{"type":606,"tag":644,"props":861,"children":862},{"style":717},[863],{"type":612,"value":741},{"type":606,"tag":644,"props":865,"children":866},{"style":656},[867],{"type":612,"value":746},{"type":606,"tag":644,"props":869,"children":870},{"style":733},[871],{"type":612,"value":872},"'%B ",{"type":606,"tag":644,"props":874,"children":875},{"style":717},[876],{"type":612,"value":756},{"type":606,"tag":644,"props":878,"children":879},{"style":733},[880],{"type":612,"value":881},", %Y at %I:%M %p'",{"type":606,"tag":644,"props":883,"children":884},{"style":656},[885],{"type":612,"value":766},{"type":606,"tag":644,"props":887,"children":888},{"style":717},[889],{"type":612,"value":771},{"type":606,"tag":644,"props":891,"children":892},{"style":733},[893],{"type":612,"value":776},{"type":606,"tag":644,"props":895,"children":896},{"style":656},[897],{"type":612,"value":781},{"type":606,"tag":644,"props":899,"children":901},{"class":646,"line":900},9,[902,906,910,914,919,923,927,932,937,942,947,951,955,959],{"type":606,"tag":644,"props":903,"children":904},{"style":717},[905],{"type":612,"value":720},{"type":606,"tag":644,"props":907,"children":908},{"style":656},[909],{"type":612,"value":725},{"type":606,"tag":644,"props":911,"children":912},{"style":650},[913],{"type":612,"value":730},{"type":606,"tag":644,"props":915,"children":916},{"style":733},[917],{"type":612,"value":918},"\"Short: ",{"type":606,"tag":644,"props":920,"children":921},{"style":717},[922],{"type":612,"value":741},{"type":606,"tag":644,"props":924,"children":925},{"style":656},[926],{"type":612,"value":746},{"type":606,"tag":644,"props":928,"children":929},{"style":733},[930],{"type":612,"value":931},"'",{"type":606,"tag":644,"props":933,"children":934},{"style":717},[935],{"type":612,"value":936},"%b",{"type":606,"tag":644,"props":938,"children":939},{"style":717},[940],{"type":612,"value":941}," %d",{"type":606,"tag":644,"props":943,"children":944},{"style":733},[945],{"type":612,"value":946},", %y'",{"type":606,"tag":644,"props":948,"children":949},{"style":656},[950],{"type":612,"value":766},{"type":606,"tag":644,"props":952,"children":953},{"style":717},[954],{"type":612,"value":771},{"type":606,"tag":644,"props":956,"children":957},{"style":733},[958],{"type":612,"value":776},{"type":606,"tag":644,"props":960,"children":961},{"style":656},[962],{"type":612,"value":781},{"type":606,"tag":964,"props":965,"children":967},"h2",{"id":966},"common-format-patterns",[968],{"type":612,"value":969},"🎯 Common Format Patterns",{"type":606,"tag":615,"props":971,"children":972},{},[973],{"type":612,"value":974},"Different applications need different date formats. Here are the most common patterns.",{"type":606,"tag":976,"props":977,"children":981},"info-box",{"emoji":978,"title":979,"type":980},"📅","Popular Date Formats","info",[982,1007,1029,1051,1073,1095],{"type":606,"tag":615,"props":983,"children":984},{},[985,991,993,999,1001],{"type":606,"tag":986,"props":987,"children":988},"strong",{},[989],{"type":612,"value":990},"ISO Standard",{"type":612,"value":992},": ",{"type":606,"tag":621,"props":994,"children":996},{"className":995},[],[997],{"type":612,"value":998},"2024-03-15 14:30:45",{"type":612,"value":1000}," → ",{"type":606,"tag":621,"props":1002,"children":1004},{"className":1003},[],[1005],{"type":612,"value":1006},"%Y-%m-%d %H:%M:%S",{"type":606,"tag":615,"props":1008,"children":1009},{},[1010,1015,1016,1022,1023],{"type":606,"tag":986,"props":1011,"children":1012},{},[1013],{"type":612,"value":1014},"US Format",{"type":612,"value":992},{"type":606,"tag":621,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":612,"value":1021},"03/15/2024 2:30 PM",{"type":612,"value":1000},{"type":606,"tag":621,"props":1024,"children":1026},{"className":1025},[],[1027],{"type":612,"value":1028},"%m/%d/%Y %I:%M %p",{"type":606,"tag":615,"props":1030,"children":1031},{},[1032,1037,1038,1044,1045],{"type":606,"tag":986,"props":1033,"children":1034},{},[1035],{"type":612,"value":1036},"European",{"type":612,"value":992},{"type":606,"tag":621,"props":1039,"children":1041},{"className":1040},[],[1042],{"type":612,"value":1043},"15/03/2024 14:30",{"type":612,"value":1000},{"type":606,"tag":621,"props":1046,"children":1048},{"className":1047},[],[1049],{"type":612,"value":1050},"%d/%m/%Y %H:%M",{"type":606,"tag":615,"props":1052,"children":1053},{},[1054,1059,1060,1066,1067],{"type":606,"tag":986,"props":1055,"children":1056},{},[1057],{"type":612,"value":1058},"Readable",{"type":612,"value":992},{"type":606,"tag":621,"props":1061,"children":1063},{"className":1062},[],[1064],{"type":612,"value":1065},"March 15, 2024",{"type":612,"value":1000},{"type":606,"tag":621,"props":1068,"children":1070},{"className":1069},[],[1071],{"type":612,"value":1072},"%B %d, %Y",{"type":606,"tag":615,"props":1074,"children":1075},{},[1076,1081,1082,1088,1089],{"type":606,"tag":986,"props":1077,"children":1078},{},[1079],{"type":612,"value":1080},"Short",{"type":612,"value":992},{"type":606,"tag":621,"props":1083,"children":1085},{"className":1084},[],[1086],{"type":612,"value":1087},"Mar 15",{"type":612,"value":1000},{"type":606,"tag":621,"props":1090,"children":1092},{"className":1091},[],[1093],{"type":612,"value":1094},"%b %d",{"type":606,"tag":615,"props":1096,"children":1097},{},[1098,1103,1104,1110,1111],{"type":606,"tag":986,"props":1099,"children":1100},{},[1101],{"type":612,"value":1102},"Timestamp",{"type":612,"value":992},{"type":606,"tag":621,"props":1105,"children":1107},{"className":1106},[],[1108],{"type":612,"value":1109},"20240315_143045",{"type":612,"value":1000},{"type":606,"tag":621,"props":1112,"children":1114},{"className":1113},[],[1115],{"type":612,"value":1116},"%Y%m%d_%H%M%S",{"type":606,"tag":1118,"props":1119,"children":1121},"h3",{"id":1120},"basic-date-formatting",[1122],{"type":612,"value":1123},"Basic Date Formatting",{"type":606,"tag":630,"props":1125,"children":1126},{},[1127],{"type":606,"tag":634,"props":1128,"children":1130},{"className":636,"code":1129,"language":638,"meta":8,"style":8},"from datetime import datetime\n\nnow = datetime.now()\n\n# Year formats\nprint(f\"4-digit year: {now.strftime('%Y')}\")\nprint(f\"2-digit year: {now.strftime('%y')}\")\n\n# Month formats\nprint(f\"Month number: {now.strftime('%m')}\")\nprint(f\"Full month: {now.strftime('%B')}\")\nprint(f\"Short month: {now.strftime('%b')}\")\n\n# Day formats\nprint(f\"Day of month: {now.strftime('%d')}\")\nprint(f\"Full weekday: {now.strftime('%A')}\")\nprint(f\"Short weekday: {now.strftime('%a')}\")\n",[1131],{"type":606,"tag":621,"props":1132,"children":1133},{"__ignoreMap":8},[1134,1153,1160,1175,1182,1190,1239,1288,1295,1303,1352,1401,1457,1464,1472,1528,1577],{"type":606,"tag":644,"props":1135,"children":1136},{"class":646,"line":12},[1137,1141,1145,1149],{"type":606,"tag":644,"props":1138,"children":1139},{"style":650},[1140],{"type":612,"value":653},{"type":606,"tag":644,"props":1142,"children":1143},{"style":656},[1144],{"type":612,"value":659},{"type":606,"tag":644,"props":1146,"children":1147},{"style":650},[1148],{"type":612,"value":664},{"type":606,"tag":644,"props":1150,"children":1151},{"style":656},[1152],{"type":612,"value":669},{"type":606,"tag":644,"props":1154,"children":1155},{"class":646,"line":27},[1156],{"type":606,"tag":644,"props":1157,"children":1158},{"emptyLinePlaceholder":13},[1159],{"type":612,"value":677},{"type":606,"tag":644,"props":1161,"children":1162},{"class":646,"line":36},[1163,1167,1171],{"type":606,"tag":644,"props":1164,"children":1165},{"style":656},[1166],{"type":612,"value":685},{"type":606,"tag":644,"props":1168,"children":1169},{"style":650},[1170],{"type":612,"value":690},{"type":606,"tag":644,"props":1172,"children":1173},{"style":656},[1174],{"type":612,"value":695},{"type":606,"tag":644,"props":1176,"children":1177},{"class":646,"line":45},[1178],{"type":606,"tag":644,"props":1179,"children":1180},{"emptyLinePlaceholder":13},[1181],{"type":612,"value":677},{"type":606,"tag":644,"props":1183,"children":1184},{"class":646,"line":54},[1185],{"type":606,"tag":644,"props":1186,"children":1187},{"style":708},[1188],{"type":612,"value":1189},"# Year formats\n",{"type":606,"tag":644,"props":1191,"children":1192},{"class":646,"line":63},[1193,1197,1201,1205,1210,1214,1218,1223,1227,1231,1235],{"type":606,"tag":644,"props":1194,"children":1195},{"style":717},[1196],{"type":612,"value":720},{"type":606,"tag":644,"props":1198,"children":1199},{"style":656},[1200],{"type":612,"value":725},{"type":606,"tag":644,"props":1202,"children":1203},{"style":650},[1204],{"type":612,"value":730},{"type":606,"tag":644,"props":1206,"children":1207},{"style":733},[1208],{"type":612,"value":1209},"\"4-digit year: ",{"type":606,"tag":644,"props":1211,"children":1212},{"style":717},[1213],{"type":612,"value":741},{"type":606,"tag":644,"props":1215,"children":1216},{"style":656},[1217],{"type":612,"value":746},{"type":606,"tag":644,"props":1219,"children":1220},{"style":733},[1221],{"type":612,"value":1222},"'%Y'",{"type":606,"tag":644,"props":1224,"children":1225},{"style":656},[1226],{"type":612,"value":766},{"type":606,"tag":644,"props":1228,"children":1229},{"style":717},[1230],{"type":612,"value":771},{"type":606,"tag":644,"props":1232,"children":1233},{"style":733},[1234],{"type":612,"value":776},{"type":606,"tag":644,"props":1236,"children":1237},{"style":656},[1238],{"type":612,"value":781},{"type":606,"tag":644,"props":1240,"children":1241},{"class":646,"line":72},[1242,1246,1250,1254,1259,1263,1267,1272,1276,1280,1284],{"type":606,"tag":644,"props":1243,"children":1244},{"style":717},[1245],{"type":612,"value":720},{"type":606,"tag":644,"props":1247,"children":1248},{"style":656},[1249],{"type":612,"value":725},{"type":606,"tag":644,"props":1251,"children":1252},{"style":650},[1253],{"type":612,"value":730},{"type":606,"tag":644,"props":1255,"children":1256},{"style":733},[1257],{"type":612,"value":1258},"\"2-digit year: ",{"type":606,"tag":644,"props":1260,"children":1261},{"style":717},[1262],{"type":612,"value":741},{"type":606,"tag":644,"props":1264,"children":1265},{"style":656},[1266],{"type":612,"value":746},{"type":606,"tag":644,"props":1268,"children":1269},{"style":733},[1270],{"type":612,"value":1271},"'%y'",{"type":606,"tag":644,"props":1273,"children":1274},{"style":656},[1275],{"type":612,"value":766},{"type":606,"tag":644,"props":1277,"children":1278},{"style":717},[1279],{"type":612,"value":771},{"type":606,"tag":644,"props":1281,"children":1282},{"style":733},[1283],{"type":612,"value":776},{"type":606,"tag":644,"props":1285,"children":1286},{"style":656},[1287],{"type":612,"value":781},{"type":606,"tag":644,"props":1289,"children":1290},{"class":646,"line":81},[1291],{"type":606,"tag":644,"props":1292,"children":1293},{"emptyLinePlaceholder":13},[1294],{"type":612,"value":677},{"type":606,"tag":644,"props":1296,"children":1297},{"class":646,"line":900},[1298],{"type":606,"tag":644,"props":1299,"children":1300},{"style":708},[1301],{"type":612,"value":1302},"# Month formats\n",{"type":606,"tag":644,"props":1304,"children":1305},{"class":646,"line":99},[1306,1310,1314,1318,1323,1327,1331,1336,1340,1344,1348],{"type":606,"tag":644,"props":1307,"children":1308},{"style":717},[1309],{"type":612,"value":720},{"type":606,"tag":644,"props":1311,"children":1312},{"style":656},[1313],{"type":612,"value":725},{"type":606,"tag":644,"props":1315,"children":1316},{"style":650},[1317],{"type":612,"value":730},{"type":606,"tag":644,"props":1319,"children":1320},{"style":733},[1321],{"type":612,"value":1322},"\"Month number: ",{"type":606,"tag":644,"props":1324,"children":1325},{"style":717},[1326],{"type":612,"value":741},{"type":606,"tag":644,"props":1328,"children":1329},{"style":656},[1330],{"type":612,"value":746},{"type":606,"tag":644,"props":1332,"children":1333},{"style":733},[1334],{"type":612,"value":1335},"'%m'",{"type":606,"tag":644,"props":1337,"children":1338},{"style":656},[1339],{"type":612,"value":766},{"type":606,"tag":644,"props":1341,"children":1342},{"style":717},[1343],{"type":612,"value":771},{"type":606,"tag":644,"props":1345,"children":1346},{"style":733},[1347],{"type":612,"value":776},{"type":606,"tag":644,"props":1349,"children":1350},{"style":656},[1351],{"type":612,"value":781},{"type":606,"tag":644,"props":1353,"children":1354},{"class":646,"line":108},[1355,1359,1363,1367,1372,1376,1380,1385,1389,1393,1397],{"type":606,"tag":644,"props":1356,"children":1357},{"style":717},[1358],{"type":612,"value":720},{"type":606,"tag":644,"props":1360,"children":1361},{"style":656},[1362],{"type":612,"value":725},{"type":606,"tag":644,"props":1364,"children":1365},{"style":650},[1366],{"type":612,"value":730},{"type":606,"tag":644,"props":1368,"children":1369},{"style":733},[1370],{"type":612,"value":1371},"\"Full month: ",{"type":606,"tag":644,"props":1373,"children":1374},{"style":717},[1375],{"type":612,"value":741},{"type":606,"tag":644,"props":1377,"children":1378},{"style":656},[1379],{"type":612,"value":746},{"type":606,"tag":644,"props":1381,"children":1382},{"style":733},[1383],{"type":612,"value":1384},"'%B'",{"type":606,"tag":644,"props":1386,"children":1387},{"style":656},[1388],{"type":612,"value":766},{"type":606,"tag":644,"props":1390,"children":1391},{"style":717},[1392],{"type":612,"value":771},{"type":606,"tag":644,"props":1394,"children":1395},{"style":733},[1396],{"type":612,"value":776},{"type":606,"tag":644,"props":1398,"children":1399},{"style":656},[1400],{"type":612,"value":781},{"type":606,"tag":644,"props":1402,"children":1403},{"class":646,"line":117},[1404,1408,1412,1416,1421,1425,1429,1433,1437,1441,1445,1449,1453],{"type":606,"tag":644,"props":1405,"children":1406},{"style":717},[1407],{"type":612,"value":720},{"type":606,"tag":644,"props":1409,"children":1410},{"style":656},[1411],{"type":612,"value":725},{"type":606,"tag":644,"props":1413,"children":1414},{"style":650},[1415],{"type":612,"value":730},{"type":606,"tag":644,"props":1417,"children":1418},{"style":733},[1419],{"type":612,"value":1420},"\"Short month: ",{"type":606,"tag":644,"props":1422,"children":1423},{"style":717},[1424],{"type":612,"value":741},{"type":606,"tag":644,"props":1426,"children":1427},{"style":656},[1428],{"type":612,"value":746},{"type":606,"tag":644,"props":1430,"children":1431},{"style":733},[1432],{"type":612,"value":931},{"type":606,"tag":644,"props":1434,"children":1435},{"style":717},[1436],{"type":612,"value":936},{"type":606,"tag":644,"props":1438,"children":1439},{"style":733},[1440],{"type":612,"value":931},{"type":606,"tag":644,"props":1442,"children":1443},{"style":656},[1444],{"type":612,"value":766},{"type":606,"tag":644,"props":1446,"children":1447},{"style":717},[1448],{"type":612,"value":771},{"type":606,"tag":644,"props":1450,"children":1451},{"style":733},[1452],{"type":612,"value":776},{"type":606,"tag":644,"props":1454,"children":1455},{"style":656},[1456],{"type":612,"value":781},{"type":606,"tag":644,"props":1458,"children":1459},{"class":646,"line":126},[1460],{"type":606,"tag":644,"props":1461,"children":1462},{"emptyLinePlaceholder":13},[1463],{"type":612,"value":677},{"type":606,"tag":644,"props":1465,"children":1466},{"class":646,"line":135},[1467],{"type":606,"tag":644,"props":1468,"children":1469},{"style":708},[1470],{"type":612,"value":1471},"# Day formats\n",{"type":606,"tag":644,"props":1473,"children":1474},{"class":646,"line":144},[1475,1479,1483,1487,1492,1496,1500,1504,1508,1512,1516,1520,1524],{"type":606,"tag":644,"props":1476,"children":1477},{"style":717},[1478],{"type":612,"value":720},{"type":606,"tag":644,"props":1480,"children":1481},{"style":656},[1482],{"type":612,"value":725},{"type":606,"tag":644,"props":1484,"children":1485},{"style":650},[1486],{"type":612,"value":730},{"type":606,"tag":644,"props":1488,"children":1489},{"style":733},[1490],{"type":612,"value":1491},"\"Day of month: ",{"type":606,"tag":644,"props":1493,"children":1494},{"style":717},[1495],{"type":612,"value":741},{"type":606,"tag":644,"props":1497,"children":1498},{"style":656},[1499],{"type":612,"value":746},{"type":606,"tag":644,"props":1501,"children":1502},{"style":733},[1503],{"type":612,"value":931},{"type":606,"tag":644,"props":1505,"children":1506},{"style":717},[1507],{"type":612,"value":756},{"type":606,"tag":644,"props":1509,"children":1510},{"style":733},[1511],{"type":612,"value":931},{"type":606,"tag":644,"props":1513,"children":1514},{"style":656},[1515],{"type":612,"value":766},{"type":606,"tag":644,"props":1517,"children":1518},{"style":717},[1519],{"type":612,"value":771},{"type":606,"tag":644,"props":1521,"children":1522},{"style":733},[1523],{"type":612,"value":776},{"type":606,"tag":644,"props":1525,"children":1526},{"style":656},[1527],{"type":612,"value":781},{"type":606,"tag":644,"props":1529,"children":1530},{"class":646,"line":153},[1531,1535,1539,1543,1548,1552,1556,1561,1565,1569,1573],{"type":606,"tag":644,"props":1532,"children":1533},{"style":717},[1534],{"type":612,"value":720},{"type":606,"tag":644,"props":1536,"children":1537},{"style":656},[1538],{"type":612,"value":725},{"type":606,"tag":644,"props":1540,"children":1541},{"style":650},[1542],{"type":612,"value":730},{"type":606,"tag":644,"props":1544,"children":1545},{"style":733},[1546],{"type":612,"value":1547},"\"Full weekday: ",{"type":606,"tag":644,"props":1549,"children":1550},{"style":717},[1551],{"type":612,"value":741},{"type":606,"tag":644,"props":1553,"children":1554},{"style":656},[1555],{"type":612,"value":746},{"type":606,"tag":644,"props":1557,"children":1558},{"style":733},[1559],{"type":612,"value":1560},"'%A'",{"type":606,"tag":644,"props":1562,"children":1563},{"style":656},[1564],{"type":612,"value":766},{"type":606,"tag":644,"props":1566,"children":1567},{"style":717},[1568],{"type":612,"value":771},{"type":606,"tag":644,"props":1570,"children":1571},{"style":733},[1572],{"type":612,"value":776},{"type":606,"tag":644,"props":1574,"children":1575},{"style":656},[1576],{"type":612,"value":781},{"type":606,"tag":644,"props":1578,"children":1579},{"class":646,"line":163},[1580,1584,1588,1592,1597,1601,1605,1609,1614,1618,1622,1626,1630],{"type":606,"tag":644,"props":1581,"children":1582},{"style":717},[1583],{"type":612,"value":720},{"type":606,"tag":644,"props":1585,"children":1586},{"style":656},[1587],{"type":612,"value":725},{"type":606,"tag":644,"props":1589,"children":1590},{"style":650},[1591],{"type":612,"value":730},{"type":606,"tag":644,"props":1593,"children":1594},{"style":733},[1595],{"type":612,"value":1596},"\"Short weekday: ",{"type":606,"tag":644,"props":1598,"children":1599},{"style":717},[1600],{"type":612,"value":741},{"type":606,"tag":644,"props":1602,"children":1603},{"style":656},[1604],{"type":612,"value":746},{"type":606,"tag":644,"props":1606,"children":1607},{"style":733},[1608],{"type":612,"value":931},{"type":606,"tag":644,"props":1610,"children":1611},{"style":717},[1612],{"type":612,"value":1613},"%a",{"type":606,"tag":644,"props":1615,"children":1616},{"style":733},[1617],{"type":612,"value":931},{"type":606,"tag":644,"props":1619,"children":1620},{"style":656},[1621],{"type":612,"value":766},{"type":606,"tag":644,"props":1623,"children":1624},{"style":717},[1625],{"type":612,"value":771},{"type":606,"tag":644,"props":1627,"children":1628},{"style":733},[1629],{"type":612,"value":776},{"type":606,"tag":644,"props":1631,"children":1632},{"style":656},[1633],{"type":612,"value":781},{"type":606,"tag":1118,"props":1635,"children":1637},{"id":1636},"time-formatting",[1638],{"type":612,"value":1639},"Time Formatting",{"type":606,"tag":630,"props":1641,"children":1642},{},[1643],{"type":606,"tag":634,"props":1644,"children":1646},{"className":636,"code":1645,"language":638,"meta":8,"style":8},"from datetime import datetime\n\nnow = datetime.now()\n\n# 24-hour format\nprint(f\"24-hour time: {now.strftime('%H:%M:%S')}\")\nprint(f\"Hour (24): {now.strftime('%H')}\")\n\n# 12-hour format\nprint(f\"12-hour time: {now.strftime('%I:%M:%S %p')}\")\nprint(f\"Hour (12): {now.strftime('%I')}\")\nprint(f\"AM/PM: {now.strftime('%p')}\")\n\n# Minutes and seconds\nprint(f\"Minutes: {now.strftime('%M')}\")\nprint(f\"Seconds: {now.strftime('%S')}\")\n",[1647],{"type":606,"tag":621,"props":1648,"children":1649},{"__ignoreMap":8},[1650,1669,1676,1691,1698,1706,1755,1804,1811,1819,1868,1917,1966,1973,1981,2030],{"type":606,"tag":644,"props":1651,"children":1652},{"class":646,"line":12},[1653,1657,1661,1665],{"type":606,"tag":644,"props":1654,"children":1655},{"style":650},[1656],{"type":612,"value":653},{"type":606,"tag":644,"props":1658,"children":1659},{"style":656},[1660],{"type":612,"value":659},{"type":606,"tag":644,"props":1662,"children":1663},{"style":650},[1664],{"type":612,"value":664},{"type":606,"tag":644,"props":1666,"children":1667},{"style":656},[1668],{"type":612,"value":669},{"type":606,"tag":644,"props":1670,"children":1671},{"class":646,"line":27},[1672],{"type":606,"tag":644,"props":1673,"children":1674},{"emptyLinePlaceholder":13},[1675],{"type":612,"value":677},{"type":606,"tag":644,"props":1677,"children":1678},{"class":646,"line":36},[1679,1683,1687],{"type":606,"tag":644,"props":1680,"children":1681},{"style":656},[1682],{"type":612,"value":685},{"type":606,"tag":644,"props":1684,"children":1685},{"style":650},[1686],{"type":612,"value":690},{"type":606,"tag":644,"props":1688,"children":1689},{"style":656},[1690],{"type":612,"value":695},{"type":606,"tag":644,"props":1692,"children":1693},{"class":646,"line":45},[1694],{"type":606,"tag":644,"props":1695,"children":1696},{"emptyLinePlaceholder":13},[1697],{"type":612,"value":677},{"type":606,"tag":644,"props":1699,"children":1700},{"class":646,"line":54},[1701],{"type":606,"tag":644,"props":1702,"children":1703},{"style":708},[1704],{"type":612,"value":1705},"# 24-hour format\n",{"type":606,"tag":644,"props":1707,"children":1708},{"class":646,"line":63},[1709,1713,1717,1721,1726,1730,1734,1739,1743,1747,1751],{"type":606,"tag":644,"props":1710,"children":1711},{"style":717},[1712],{"type":612,"value":720},{"type":606,"tag":644,"props":1714,"children":1715},{"style":656},[1716],{"type":612,"value":725},{"type":606,"tag":644,"props":1718,"children":1719},{"style":650},[1720],{"type":612,"value":730},{"type":606,"tag":644,"props":1722,"children":1723},{"style":733},[1724],{"type":612,"value":1725},"\"24-hour time: ",{"type":606,"tag":644,"props":1727,"children":1728},{"style":717},[1729],{"type":612,"value":741},{"type":606,"tag":644,"props":1731,"children":1732},{"style":656},[1733],{"type":612,"value":746},{"type":606,"tag":644,"props":1735,"children":1736},{"style":733},[1737],{"type":612,"value":1738},"'%H:%M:%S'",{"type":606,"tag":644,"props":1740,"children":1741},{"style":656},[1742],{"type":612,"value":766},{"type":606,"tag":644,"props":1744,"children":1745},{"style":717},[1746],{"type":612,"value":771},{"type":606,"tag":644,"props":1748,"children":1749},{"style":733},[1750],{"type":612,"value":776},{"type":606,"tag":644,"props":1752,"children":1753},{"style":656},[1754],{"type":612,"value":781},{"type":606,"tag":644,"props":1756,"children":1757},{"class":646,"line":72},[1758,1762,1766,1770,1775,1779,1783,1788,1792,1796,1800],{"type":606,"tag":644,"props":1759,"children":1760},{"style":717},[1761],{"type":612,"value":720},{"type":606,"tag":644,"props":1763,"children":1764},{"style":656},[1765],{"type":612,"value":725},{"type":606,"tag":644,"props":1767,"children":1768},{"style":650},[1769],{"type":612,"value":730},{"type":606,"tag":644,"props":1771,"children":1772},{"style":733},[1773],{"type":612,"value":1774},"\"Hour (24): ",{"type":606,"tag":644,"props":1776,"children":1777},{"style":717},[1778],{"type":612,"value":741},{"type":606,"tag":644,"props":1780,"children":1781},{"style":656},[1782],{"type":612,"value":746},{"type":606,"tag":644,"props":1784,"children":1785},{"style":733},[1786],{"type":612,"value":1787},"'%H'",{"type":606,"tag":644,"props":1789,"children":1790},{"style":656},[1791],{"type":612,"value":766},{"type":606,"tag":644,"props":1793,"children":1794},{"style":717},[1795],{"type":612,"value":771},{"type":606,"tag":644,"props":1797,"children":1798},{"style":733},[1799],{"type":612,"value":776},{"type":606,"tag":644,"props":1801,"children":1802},{"style":656},[1803],{"type":612,"value":781},{"type":606,"tag":644,"props":1805,"children":1806},{"class":646,"line":81},[1807],{"type":606,"tag":644,"props":1808,"children":1809},{"emptyLinePlaceholder":13},[1810],{"type":612,"value":677},{"type":606,"tag":644,"props":1812,"children":1813},{"class":646,"line":900},[1814],{"type":606,"tag":644,"props":1815,"children":1816},{"style":708},[1817],{"type":612,"value":1818},"# 12-hour format\n",{"type":606,"tag":644,"props":1820,"children":1821},{"class":646,"line":99},[1822,1826,1830,1834,1839,1843,1847,1852,1856,1860,1864],{"type":606,"tag":644,"props":1823,"children":1824},{"style":717},[1825],{"type":612,"value":720},{"type":606,"tag":644,"props":1827,"children":1828},{"style":656},[1829],{"type":612,"value":725},{"type":606,"tag":644,"props":1831,"children":1832},{"style":650},[1833],{"type":612,"value":730},{"type":606,"tag":644,"props":1835,"children":1836},{"style":733},[1837],{"type":612,"value":1838},"\"12-hour time: ",{"type":606,"tag":644,"props":1840,"children":1841},{"style":717},[1842],{"type":612,"value":741},{"type":606,"tag":644,"props":1844,"children":1845},{"style":656},[1846],{"type":612,"value":746},{"type":606,"tag":644,"props":1848,"children":1849},{"style":733},[1850],{"type":612,"value":1851},"'%I:%M:%S %p'",{"type":606,"tag":644,"props":1853,"children":1854},{"style":656},[1855],{"type":612,"value":766},{"type":606,"tag":644,"props":1857,"children":1858},{"style":717},[1859],{"type":612,"value":771},{"type":606,"tag":644,"props":1861,"children":1862},{"style":733},[1863],{"type":612,"value":776},{"type":606,"tag":644,"props":1865,"children":1866},{"style":656},[1867],{"type":612,"value":781},{"type":606,"tag":644,"props":1869,"children":1870},{"class":646,"line":108},[1871,1875,1879,1883,1888,1892,1896,1901,1905,1909,1913],{"type":606,"tag":644,"props":1872,"children":1873},{"style":717},[1874],{"type":612,"value":720},{"type":606,"tag":644,"props":1876,"children":1877},{"style":656},[1878],{"type":612,"value":725},{"type":606,"tag":644,"props":1880,"children":1881},{"style":650},[1882],{"type":612,"value":730},{"type":606,"tag":644,"props":1884,"children":1885},{"style":733},[1886],{"type":612,"value":1887},"\"Hour (12): ",{"type":606,"tag":644,"props":1889,"children":1890},{"style":717},[1891],{"type":612,"value":741},{"type":606,"tag":644,"props":1893,"children":1894},{"style":656},[1895],{"type":612,"value":746},{"type":606,"tag":644,"props":1897,"children":1898},{"style":733},[1899],{"type":612,"value":1900},"'%I'",{"type":606,"tag":644,"props":1902,"children":1903},{"style":656},[1904],{"type":612,"value":766},{"type":606,"tag":644,"props":1906,"children":1907},{"style":717},[1908],{"type":612,"value":771},{"type":606,"tag":644,"props":1910,"children":1911},{"style":733},[1912],{"type":612,"value":776},{"type":606,"tag":644,"props":1914,"children":1915},{"style":656},[1916],{"type":612,"value":781},{"type":606,"tag":644,"props":1918,"children":1919},{"class":646,"line":117},[1920,1924,1928,1932,1937,1941,1945,1950,1954,1958,1962],{"type":606,"tag":644,"props":1921,"children":1922},{"style":717},[1923],{"type":612,"value":720},{"type":606,"tag":644,"props":1925,"children":1926},{"style":656},[1927],{"type":612,"value":725},{"type":606,"tag":644,"props":1929,"children":1930},{"style":650},[1931],{"type":612,"value":730},{"type":606,"tag":644,"props":1933,"children":1934},{"style":733},[1935],{"type":612,"value":1936},"\"AM/PM: ",{"type":606,"tag":644,"props":1938,"children":1939},{"style":717},[1940],{"type":612,"value":741},{"type":606,"tag":644,"props":1942,"children":1943},{"style":656},[1944],{"type":612,"value":746},{"type":606,"tag":644,"props":1946,"children":1947},{"style":733},[1948],{"type":612,"value":1949},"'%p'",{"type":606,"tag":644,"props":1951,"children":1952},{"style":656},[1953],{"type":612,"value":766},{"type":606,"tag":644,"props":1955,"children":1956},{"style":717},[1957],{"type":612,"value":771},{"type":606,"tag":644,"props":1959,"children":1960},{"style":733},[1961],{"type":612,"value":776},{"type":606,"tag":644,"props":1963,"children":1964},{"style":656},[1965],{"type":612,"value":781},{"type":606,"tag":644,"props":1967,"children":1968},{"class":646,"line":126},[1969],{"type":606,"tag":644,"props":1970,"children":1971},{"emptyLinePlaceholder":13},[1972],{"type":612,"value":677},{"type":606,"tag":644,"props":1974,"children":1975},{"class":646,"line":135},[1976],{"type":606,"tag":644,"props":1977,"children":1978},{"style":708},[1979],{"type":612,"value":1980},"# Minutes and seconds\n",{"type":606,"tag":644,"props":1982,"children":1983},{"class":646,"line":144},[1984,1988,1992,1996,2001,2005,2009,2014,2018,2022,2026],{"type":606,"tag":644,"props":1985,"children":1986},{"style":717},[1987],{"type":612,"value":720},{"type":606,"tag":644,"props":1989,"children":1990},{"style":656},[1991],{"type":612,"value":725},{"type":606,"tag":644,"props":1993,"children":1994},{"style":650},[1995],{"type":612,"value":730},{"type":606,"tag":644,"props":1997,"children":1998},{"style":733},[1999],{"type":612,"value":2000},"\"Minutes: ",{"type":606,"tag":644,"props":2002,"children":2003},{"style":717},[2004],{"type":612,"value":741},{"type":606,"tag":644,"props":2006,"children":2007},{"style":656},[2008],{"type":612,"value":746},{"type":606,"tag":644,"props":2010,"children":2011},{"style":733},[2012],{"type":612,"value":2013},"'%M'",{"type":606,"tag":644,"props":2015,"children":2016},{"style":656},[2017],{"type":612,"value":766},{"type":606,"tag":644,"props":2019,"children":2020},{"style":717},[2021],{"type":612,"value":771},{"type":606,"tag":644,"props":2023,"children":2024},{"style":733},[2025],{"type":612,"value":776},{"type":606,"tag":644,"props":2027,"children":2028},{"style":656},[2029],{"type":612,"value":781},{"type":606,"tag":644,"props":2031,"children":2032},{"class":646,"line":153},[2033,2037,2041,2045,2050,2054,2058,2063,2067,2071,2075],{"type":606,"tag":644,"props":2034,"children":2035},{"style":717},[2036],{"type":612,"value":720},{"type":606,"tag":644,"props":2038,"children":2039},{"style":656},[2040],{"type":612,"value":725},{"type":606,"tag":644,"props":2042,"children":2043},{"style":650},[2044],{"type":612,"value":730},{"type":606,"tag":644,"props":2046,"children":2047},{"style":733},[2048],{"type":612,"value":2049},"\"Seconds: ",{"type":606,"tag":644,"props":2051,"children":2052},{"style":717},[2053],{"type":612,"value":741},{"type":606,"tag":644,"props":2055,"children":2056},{"style":656},[2057],{"type":612,"value":746},{"type":606,"tag":644,"props":2059,"children":2060},{"style":733},[2061],{"type":612,"value":2062},"'%S'",{"type":606,"tag":644,"props":2064,"children":2065},{"style":656},[2066],{"type":612,"value":766},{"type":606,"tag":644,"props":2068,"children":2069},{"style":717},[2070],{"type":612,"value":771},{"type":606,"tag":644,"props":2072,"children":2073},{"style":733},[2074],{"type":612,"value":776},{"type":606,"tag":644,"props":2076,"children":2077},{"style":656},[2078],{"type":612,"value":781},{"type":606,"tag":1118,"props":2080,"children":2082},{"id":2081},"combined-date-and-time",[2083],{"type":612,"value":2084},"Combined Date and Time",{"type":606,"tag":630,"props":2086,"children":2087},{},[2088],{"type":606,"tag":634,"props":2089,"children":2091},{"className":636,"code":2090,"language":638,"meta":8,"style":8},"from datetime import datetime\n\nnow = datetime.now()\n\n# Professional formats\nprint(f\"Log format: {now.strftime('%Y-%m-%d %H:%M:%S')}\")\nprint(f\"Email format: {now.strftime('%a, %d %b %Y %H:%M:%S')}\")\nprint(f\"Human readable: {now.strftime('%A, %B %d, %Y at %I:%M %p')}\")\n\n# Compact formats\nprint(f\"Compact: {now.strftime('%Y%m%d_%H%M%S')}\")\nprint(f\"File safe: {now.strftime('%Y-%m-%d_%H-%M-%S')}\")\n",[2092],{"type":606,"tag":621,"props":2093,"children":2094},{"__ignoreMap":8},[2095,2114,2121,2136,2143,2151,2207,2278,2335,2342,2350,2408],{"type":606,"tag":644,"props":2096,"children":2097},{"class":646,"line":12},[2098,2102,2106,2110],{"type":606,"tag":644,"props":2099,"children":2100},{"style":650},[2101],{"type":612,"value":653},{"type":606,"tag":644,"props":2103,"children":2104},{"style":656},[2105],{"type":612,"value":659},{"type":606,"tag":644,"props":2107,"children":2108},{"style":650},[2109],{"type":612,"value":664},{"type":606,"tag":644,"props":2111,"children":2112},{"style":656},[2113],{"type":612,"value":669},{"type":606,"tag":644,"props":2115,"children":2116},{"class":646,"line":27},[2117],{"type":606,"tag":644,"props":2118,"children":2119},{"emptyLinePlaceholder":13},[2120],{"type":612,"value":677},{"type":606,"tag":644,"props":2122,"children":2123},{"class":646,"line":36},[2124,2128,2132],{"type":606,"tag":644,"props":2125,"children":2126},{"style":656},[2127],{"type":612,"value":685},{"type":606,"tag":644,"props":2129,"children":2130},{"style":650},[2131],{"type":612,"value":690},{"type":606,"tag":644,"props":2133,"children":2134},{"style":656},[2135],{"type":612,"value":695},{"type":606,"tag":644,"props":2137,"children":2138},{"class":646,"line":45},[2139],{"type":606,"tag":644,"props":2140,"children":2141},{"emptyLinePlaceholder":13},[2142],{"type":612,"value":677},{"type":606,"tag":644,"props":2144,"children":2145},{"class":646,"line":54},[2146],{"type":606,"tag":644,"props":2147,"children":2148},{"style":708},[2149],{"type":612,"value":2150},"# Professional formats\n",{"type":606,"tag":644,"props":2152,"children":2153},{"class":646,"line":63},[2154,2158,2162,2166,2171,2175,2179,2183,2187,2191,2195,2199,2203],{"type":606,"tag":644,"props":2155,"children":2156},{"style":717},[2157],{"type":612,"value":720},{"type":606,"tag":644,"props":2159,"children":2160},{"style":656},[2161],{"type":612,"value":725},{"type":606,"tag":644,"props":2163,"children":2164},{"style":650},[2165],{"type":612,"value":730},{"type":606,"tag":644,"props":2167,"children":2168},{"style":733},[2169],{"type":612,"value":2170},"\"Log format: ",{"type":606,"tag":644,"props":2172,"children":2173},{"style":717},[2174],{"type":612,"value":741},{"type":606,"tag":644,"props":2176,"children":2177},{"style":656},[2178],{"type":612,"value":746},{"type":606,"tag":644,"props":2180,"children":2181},{"style":733},[2182],{"type":612,"value":751},{"type":606,"tag":644,"props":2184,"children":2185},{"style":717},[2186],{"type":612,"value":756},{"type":606,"tag":644,"props":2188,"children":2189},{"style":733},[2190],{"type":612,"value":761},{"type":606,"tag":644,"props":2192,"children":2193},{"style":656},[2194],{"type":612,"value":766},{"type":606,"tag":644,"props":2196,"children":2197},{"style":717},[2198],{"type":612,"value":771},{"type":606,"tag":644,"props":2200,"children":2201},{"style":733},[2202],{"type":612,"value":776},{"type":606,"tag":644,"props":2204,"children":2205},{"style":656},[2206],{"type":612,"value":781},{"type":606,"tag":644,"props":2208,"children":2209},{"class":646,"line":72},[2210,2214,2218,2222,2227,2231,2235,2239,2243,2248,2252,2257,2262,2266,2270,2274],{"type":606,"tag":644,"props":2211,"children":2212},{"style":717},[2213],{"type":612,"value":720},{"type":606,"tag":644,"props":2215,"children":2216},{"style":656},[2217],{"type":612,"value":725},{"type":606,"tag":644,"props":2219,"children":2220},{"style":650},[2221],{"type":612,"value":730},{"type":606,"tag":644,"props":2223,"children":2224},{"style":733},[2225],{"type":612,"value":2226},"\"Email format: ",{"type":606,"tag":644,"props":2228,"children":2229},{"style":717},[2230],{"type":612,"value":741},{"type":606,"tag":644,"props":2232,"children":2233},{"style":656},[2234],{"type":612,"value":746},{"type":606,"tag":644,"props":2236,"children":2237},{"style":733},[2238],{"type":612,"value":931},{"type":606,"tag":644,"props":2240,"children":2241},{"style":717},[2242],{"type":612,"value":1613},{"type":606,"tag":644,"props":2244,"children":2245},{"style":733},[2246],{"type":612,"value":2247},", ",{"type":606,"tag":644,"props":2249,"children":2250},{"style":717},[2251],{"type":612,"value":756},{"type":606,"tag":644,"props":2253,"children":2254},{"style":717},[2255],{"type":612,"value":2256}," %b",{"type":606,"tag":644,"props":2258,"children":2259},{"style":733},[2260],{"type":612,"value":2261}," %Y %H:%M:%S'",{"type":606,"tag":644,"props":2263,"children":2264},{"style":656},[2265],{"type":612,"value":766},{"type":606,"tag":644,"props":2267,"children":2268},{"style":717},[2269],{"type":612,"value":771},{"type":606,"tag":644,"props":2271,"children":2272},{"style":733},[2273],{"type":612,"value":776},{"type":606,"tag":644,"props":2275,"children":2276},{"style":656},[2277],{"type":612,"value":781},{"type":606,"tag":644,"props":2279,"children":2280},{"class":646,"line":81},[2281,2285,2289,2293,2298,2302,2306,2311,2315,2319,2323,2327,2331],{"type":606,"tag":644,"props":2282,"children":2283},{"style":717},[2284],{"type":612,"value":720},{"type":606,"tag":644,"props":2286,"children":2287},{"style":656},[2288],{"type":612,"value":725},{"type":606,"tag":644,"props":2290,"children":2291},{"style":650},[2292],{"type":612,"value":730},{"type":606,"tag":644,"props":2294,"children":2295},{"style":733},[2296],{"type":612,"value":2297},"\"Human readable: ",{"type":606,"tag":644,"props":2299,"children":2300},{"style":717},[2301],{"type":612,"value":741},{"type":606,"tag":644,"props":2303,"children":2304},{"style":656},[2305],{"type":612,"value":746},{"type":606,"tag":644,"props":2307,"children":2308},{"style":733},[2309],{"type":612,"value":2310},"'%A, %B ",{"type":606,"tag":644,"props":2312,"children":2313},{"style":717},[2314],{"type":612,"value":756},{"type":606,"tag":644,"props":2316,"children":2317},{"style":733},[2318],{"type":612,"value":881},{"type":606,"tag":644,"props":2320,"children":2321},{"style":656},[2322],{"type":612,"value":766},{"type":606,"tag":644,"props":2324,"children":2325},{"style":717},[2326],{"type":612,"value":771},{"type":606,"tag":644,"props":2328,"children":2329},{"style":733},[2330],{"type":612,"value":776},{"type":606,"tag":644,"props":2332,"children":2333},{"style":656},[2334],{"type":612,"value":781},{"type":606,"tag":644,"props":2336,"children":2337},{"class":646,"line":900},[2338],{"type":606,"tag":644,"props":2339,"children":2340},{"emptyLinePlaceholder":13},[2341],{"type":612,"value":677},{"type":606,"tag":644,"props":2343,"children":2344},{"class":646,"line":99},[2345],{"type":606,"tag":644,"props":2346,"children":2347},{"style":708},[2348],{"type":612,"value":2349},"# Compact formats\n",{"type":606,"tag":644,"props":2351,"children":2352},{"class":646,"line":108},[2353,2357,2361,2365,2370,2374,2378,2383,2387,2392,2396,2400,2404],{"type":606,"tag":644,"props":2354,"children":2355},{"style":717},[2356],{"type":612,"value":720},{"type":606,"tag":644,"props":2358,"children":2359},{"style":656},[2360],{"type":612,"value":725},{"type":606,"tag":644,"props":2362,"children":2363},{"style":650},[2364],{"type":612,"value":730},{"type":606,"tag":644,"props":2366,"children":2367},{"style":733},[2368],{"type":612,"value":2369},"\"Compact: ",{"type":606,"tag":644,"props":2371,"children":2372},{"style":717},[2373],{"type":612,"value":741},{"type":606,"tag":644,"props":2375,"children":2376},{"style":656},[2377],{"type":612,"value":746},{"type":606,"tag":644,"props":2379,"children":2380},{"style":733},[2381],{"type":612,"value":2382},"'%Y%m",{"type":606,"tag":644,"props":2384,"children":2385},{"style":717},[2386],{"type":612,"value":756},{"type":606,"tag":644,"props":2388,"children":2389},{"style":733},[2390],{"type":612,"value":2391},"_%H%M%S'",{"type":606,"tag":644,"props":2393,"children":2394},{"style":656},[2395],{"type":612,"value":766},{"type":606,"tag":644,"props":2397,"children":2398},{"style":717},[2399],{"type":612,"value":771},{"type":606,"tag":644,"props":2401,"children":2402},{"style":733},[2403],{"type":612,"value":776},{"type":606,"tag":644,"props":2405,"children":2406},{"style":656},[2407],{"type":612,"value":781},{"type":606,"tag":644,"props":2409,"children":2410},{"class":646,"line":117},[2411,2415,2419,2423,2428,2432,2436,2440,2444,2449,2453,2457,2461],{"type":606,"tag":644,"props":2412,"children":2413},{"style":717},[2414],{"type":612,"value":720},{"type":606,"tag":644,"props":2416,"children":2417},{"style":656},[2418],{"type":612,"value":725},{"type":606,"tag":644,"props":2420,"children":2421},{"style":650},[2422],{"type":612,"value":730},{"type":606,"tag":644,"props":2424,"children":2425},{"style":733},[2426],{"type":612,"value":2427},"\"File safe: ",{"type":606,"tag":644,"props":2429,"children":2430},{"style":717},[2431],{"type":612,"value":741},{"type":606,"tag":644,"props":2433,"children":2434},{"style":656},[2435],{"type":612,"value":746},{"type":606,"tag":644,"props":2437,"children":2438},{"style":733},[2439],{"type":612,"value":751},{"type":606,"tag":644,"props":2441,"children":2442},{"style":717},[2443],{"type":612,"value":756},{"type":606,"tag":644,"props":2445,"children":2446},{"style":733},[2447],{"type":612,"value":2448},"_%H-%M-%S'",{"type":606,"tag":644,"props":2450,"children":2451},{"style":656},[2452],{"type":612,"value":766},{"type":606,"tag":644,"props":2454,"children":2455},{"style":717},[2456],{"type":612,"value":771},{"type":606,"tag":644,"props":2458,"children":2459},{"style":733},[2460],{"type":612,"value":776},{"type":606,"tag":644,"props":2462,"children":2463},{"style":656},[2464],{"type":612,"value":781},{"type":606,"tag":964,"props":2466,"children":2468},{"id":2467},"format-code-reference",[2469],{"type":612,"value":2470},"📊 Format Code Reference",{"type":606,"tag":615,"props":2472,"children":2473},{},[2474],{"type":612,"value":2475},"Complete reference for Python's datetime format codes.",{"type":606,"tag":1118,"props":2477,"children":2479},{"id":2478},"date-format-codes",[2480],{"type":612,"value":2481},"Date Format Codes",{"type":606,"tag":2483,"props":2484,"children":2485},"table",{},[2486,2510],{"type":606,"tag":2487,"props":2488,"children":2489},"thead",{},[2490],{"type":606,"tag":2491,"props":2492,"children":2493},"tr",{},[2494,2500,2505],{"type":606,"tag":2495,"props":2496,"children":2497},"th",{},[2498],{"type":612,"value":2499},"Code",{"type":606,"tag":2495,"props":2501,"children":2502},{},[2503],{"type":612,"value":2504},"Description",{"type":606,"tag":2495,"props":2506,"children":2507},{},[2508],{"type":612,"value":2509},"Example",{"type":606,"tag":2511,"props":2512,"children":2513},"tbody",{},[2514,2541,2567,2593,2619,2644,2669,2695,2720,2746],{"type":606,"tag":2491,"props":2515,"children":2516},{},[2517,2527,2532],{"type":606,"tag":2518,"props":2519,"children":2520},"td",{},[2521],{"type":606,"tag":621,"props":2522,"children":2524},{"className":2523},[],[2525],{"type":612,"value":2526},"%Y",{"type":606,"tag":2518,"props":2528,"children":2529},{},[2530],{"type":612,"value":2531},"4-digit year",{"type":606,"tag":2518,"props":2533,"children":2534},{},[2535],{"type":606,"tag":621,"props":2536,"children":2538},{"className":2537},[],[2539],{"type":612,"value":2540},"2024",{"type":606,"tag":2491,"props":2542,"children":2543},{},[2544,2553,2558],{"type":606,"tag":2518,"props":2545,"children":2546},{},[2547],{"type":606,"tag":621,"props":2548,"children":2550},{"className":2549},[],[2551],{"type":612,"value":2552},"%y",{"type":606,"tag":2518,"props":2554,"children":2555},{},[2556],{"type":612,"value":2557},"2-digit year",{"type":606,"tag":2518,"props":2559,"children":2560},{},[2561],{"type":606,"tag":621,"props":2562,"children":2564},{"className":2563},[],[2565],{"type":612,"value":2566},"24",{"type":606,"tag":2491,"props":2568,"children":2569},{},[2570,2579,2584],{"type":606,"tag":2518,"props":2571,"children":2572},{},[2573],{"type":606,"tag":621,"props":2574,"children":2576},{"className":2575},[],[2577],{"type":612,"value":2578},"%m",{"type":606,"tag":2518,"props":2580,"children":2581},{},[2582],{"type":612,"value":2583},"Month as number",{"type":606,"tag":2518,"props":2585,"children":2586},{},[2587],{"type":606,"tag":621,"props":2588,"children":2590},{"className":2589},[],[2591],{"type":612,"value":2592},"03",{"type":606,"tag":2491,"props":2594,"children":2595},{},[2596,2605,2610],{"type":606,"tag":2518,"props":2597,"children":2598},{},[2599],{"type":606,"tag":621,"props":2600,"children":2602},{"className":2601},[],[2603],{"type":612,"value":2604},"%B",{"type":606,"tag":2518,"props":2606,"children":2607},{},[2608],{"type":612,"value":2609},"Full month name",{"type":606,"tag":2518,"props":2611,"children":2612},{},[2613],{"type":606,"tag":621,"props":2614,"children":2616},{"className":2615},[],[2617],{"type":612,"value":2618},"March",{"type":606,"tag":2491,"props":2620,"children":2621},{},[2622,2630,2635],{"type":606,"tag":2518,"props":2623,"children":2624},{},[2625],{"type":606,"tag":621,"props":2626,"children":2628},{"className":2627},[],[2629],{"type":612,"value":936},{"type":606,"tag":2518,"props":2631,"children":2632},{},[2633],{"type":612,"value":2634},"Abbreviated month",{"type":606,"tag":2518,"props":2636,"children":2637},{},[2638],{"type":606,"tag":621,"props":2639,"children":2641},{"className":2640},[],[2642],{"type":612,"value":2643},"Mar",{"type":606,"tag":2491,"props":2645,"children":2646},{},[2647,2655,2660],{"type":606,"tag":2518,"props":2648,"children":2649},{},[2650],{"type":606,"tag":621,"props":2651,"children":2653},{"className":2652},[],[2654],{"type":612,"value":756},{"type":606,"tag":2518,"props":2656,"children":2657},{},[2658],{"type":612,"value":2659},"Day of month",{"type":606,"tag":2518,"props":2661,"children":2662},{},[2663],{"type":606,"tag":621,"props":2664,"children":2666},{"className":2665},[],[2667],{"type":612,"value":2668},"15",{"type":606,"tag":2491,"props":2670,"children":2671},{},[2672,2681,2686],{"type":606,"tag":2518,"props":2673,"children":2674},{},[2675],{"type":606,"tag":621,"props":2676,"children":2678},{"className":2677},[],[2679],{"type":612,"value":2680},"%A",{"type":606,"tag":2518,"props":2682,"children":2683},{},[2684],{"type":612,"value":2685},"Full weekday name",{"type":606,"tag":2518,"props":2687,"children":2688},{},[2689],{"type":606,"tag":621,"props":2690,"children":2692},{"className":2691},[],[2693],{"type":612,"value":2694},"Friday",{"type":606,"tag":2491,"props":2696,"children":2697},{},[2698,2706,2711],{"type":606,"tag":2518,"props":2699,"children":2700},{},[2701],{"type":606,"tag":621,"props":2702,"children":2704},{"className":2703},[],[2705],{"type":612,"value":1613},{"type":606,"tag":2518,"props":2707,"children":2708},{},[2709],{"type":612,"value":2710},"Abbreviated weekday",{"type":606,"tag":2518,"props":2712,"children":2713},{},[2714],{"type":606,"tag":621,"props":2715,"children":2717},{"className":2716},[],[2718],{"type":612,"value":2719},"Fri",{"type":606,"tag":2491,"props":2721,"children":2722},{},[2723,2732,2737],{"type":606,"tag":2518,"props":2724,"children":2725},{},[2726],{"type":606,"tag":621,"props":2727,"children":2729},{"className":2728},[],[2730],{"type":612,"value":2731},"%w",{"type":606,"tag":2518,"props":2733,"children":2734},{},[2735],{"type":612,"value":2736},"Weekday as number (0-6)",{"type":606,"tag":2518,"props":2738,"children":2739},{},[2740],{"type":606,"tag":621,"props":2741,"children":2743},{"className":2742},[],[2744],{"type":612,"value":2745},"5",{"type":606,"tag":2491,"props":2747,"children":2748},{},[2749,2758,2763],{"type":606,"tag":2518,"props":2750,"children":2751},{},[2752],{"type":606,"tag":621,"props":2753,"children":2755},{"className":2754},[],[2756],{"type":612,"value":2757},"%j",{"type":606,"tag":2518,"props":2759,"children":2760},{},[2761],{"type":612,"value":2762},"Day of year",{"type":606,"tag":2518,"props":2764,"children":2765},{},[2766],{"type":606,"tag":621,"props":2767,"children":2769},{"className":2768},[],[2770],{"type":612,"value":2771},"075",{"type":606,"tag":1118,"props":2773,"children":2775},{"id":2774},"time-format-codes",[2776],{"type":612,"value":2777},"Time Format Codes",{"type":606,"tag":2483,"props":2779,"children":2780},{},[2781,2799],{"type":606,"tag":2487,"props":2782,"children":2783},{},[2784],{"type":606,"tag":2491,"props":2785,"children":2786},{},[2787,2791,2795],{"type":606,"tag":2495,"props":2788,"children":2789},{},[2790],{"type":612,"value":2499},{"type":606,"tag":2495,"props":2792,"children":2793},{},[2794],{"type":612,"value":2504},{"type":606,"tag":2495,"props":2796,"children":2797},{},[2798],{"type":612,"value":2509},{"type":606,"tag":2511,"props":2800,"children":2801},{},[2802,2828,2854,2880,2906,2932,2958,2984],{"type":606,"tag":2491,"props":2803,"children":2804},{},[2805,2814,2819],{"type":606,"tag":2518,"props":2806,"children":2807},{},[2808],{"type":606,"tag":621,"props":2809,"children":2811},{"className":2810},[],[2812],{"type":612,"value":2813},"%H",{"type":606,"tag":2518,"props":2815,"children":2816},{},[2817],{"type":612,"value":2818},"Hour (00-23)",{"type":606,"tag":2518,"props":2820,"children":2821},{},[2822],{"type":606,"tag":621,"props":2823,"children":2825},{"className":2824},[],[2826],{"type":612,"value":2827},"14",{"type":606,"tag":2491,"props":2829,"children":2830},{},[2831,2840,2845],{"type":606,"tag":2518,"props":2832,"children":2833},{},[2834],{"type":606,"tag":621,"props":2835,"children":2837},{"className":2836},[],[2838],{"type":612,"value":2839},"%I",{"type":606,"tag":2518,"props":2841,"children":2842},{},[2843],{"type":612,"value":2844},"Hour (01-12)",{"type":606,"tag":2518,"props":2846,"children":2847},{},[2848],{"type":606,"tag":621,"props":2849,"children":2851},{"className":2850},[],[2852],{"type":612,"value":2853},"02",{"type":606,"tag":2491,"props":2855,"children":2856},{},[2857,2866,2871],{"type":606,"tag":2518,"props":2858,"children":2859},{},[2860],{"type":606,"tag":621,"props":2861,"children":2863},{"className":2862},[],[2864],{"type":612,"value":2865},"%M",{"type":606,"tag":2518,"props":2867,"children":2868},{},[2869],{"type":612,"value":2870},"Minute",{"type":606,"tag":2518,"props":2872,"children":2873},{},[2874],{"type":606,"tag":621,"props":2875,"children":2877},{"className":2876},[],[2878],{"type":612,"value":2879},"30",{"type":606,"tag":2491,"props":2881,"children":2882},{},[2883,2892,2897],{"type":606,"tag":2518,"props":2884,"children":2885},{},[2886],{"type":606,"tag":621,"props":2887,"children":2889},{"className":2888},[],[2890],{"type":612,"value":2891},"%S",{"type":606,"tag":2518,"props":2893,"children":2894},{},[2895],{"type":612,"value":2896},"Second",{"type":606,"tag":2518,"props":2898,"children":2899},{},[2900],{"type":606,"tag":621,"props":2901,"children":2903},{"className":2902},[],[2904],{"type":612,"value":2905},"45",{"type":606,"tag":2491,"props":2907,"children":2908},{},[2909,2918,2923],{"type":606,"tag":2518,"props":2910,"children":2911},{},[2912],{"type":606,"tag":621,"props":2913,"children":2915},{"className":2914},[],[2916],{"type":612,"value":2917},"%f",{"type":606,"tag":2518,"props":2919,"children":2920},{},[2921],{"type":612,"value":2922},"Microsecond",{"type":606,"tag":2518,"props":2924,"children":2925},{},[2926],{"type":606,"tag":621,"props":2927,"children":2929},{"className":2928},[],[2930],{"type":612,"value":2931},"123456",{"type":606,"tag":2491,"props":2933,"children":2934},{},[2935,2944,2949],{"type":606,"tag":2518,"props":2936,"children":2937},{},[2938],{"type":606,"tag":621,"props":2939,"children":2941},{"className":2940},[],[2942],{"type":612,"value":2943},"%p",{"type":606,"tag":2518,"props":2945,"children":2946},{},[2947],{"type":612,"value":2948},"AM/PM",{"type":606,"tag":2518,"props":2950,"children":2951},{},[2952],{"type":606,"tag":621,"props":2953,"children":2955},{"className":2954},[],[2956],{"type":612,"value":2957},"PM",{"type":606,"tag":2491,"props":2959,"children":2960},{},[2961,2970,2975],{"type":606,"tag":2518,"props":2962,"children":2963},{},[2964],{"type":606,"tag":621,"props":2965,"children":2967},{"className":2966},[],[2968],{"type":612,"value":2969},"%Z",{"type":606,"tag":2518,"props":2971,"children":2972},{},[2973],{"type":612,"value":2974},"Time zone name",{"type":606,"tag":2518,"props":2976,"children":2977},{},[2978],{"type":606,"tag":621,"props":2979,"children":2981},{"className":2980},[],[2982],{"type":612,"value":2983},"UTC",{"type":606,"tag":2491,"props":2985,"children":2986},{},[2987,2996,3001],{"type":606,"tag":2518,"props":2988,"children":2989},{},[2990],{"type":606,"tag":621,"props":2991,"children":2993},{"className":2992},[],[2994],{"type":612,"value":2995},"%z",{"type":606,"tag":2518,"props":2997,"children":2998},{},[2999],{"type":612,"value":3000},"UTC offset",{"type":606,"tag":2518,"props":3002,"children":3003},{},[3004],{"type":606,"tag":621,"props":3005,"children":3007},{"className":3006},[],[3008],{"type":612,"value":3009},"+0000",{"type":606,"tag":964,"props":3011,"children":3013},{"id":3012},"locale-aware-formatting",[3014],{"type":612,"value":3015},"🌍 Locale-Aware Formatting",{"type":606,"tag":615,"props":3017,"children":3018},{},[3019],{"type":612,"value":3020},"Format dates according to different locales and languages.",{"type":606,"tag":1118,"props":3022,"children":3024},{"id":3023},"setting-locale",[3025],{"type":612,"value":3026},"Setting Locale",{"type":606,"tag":630,"props":3028,"children":3029},{},[3030],{"type":606,"tag":634,"props":3031,"children":3033},{"className":636,"code":3032,"language":638,"meta":8,"style":8},"import locale\nfrom datetime import datetime\n\nnow = datetime.now()\n\n# Try different locales (availability depends on system)\nlocales_to_try = ['en_US', 'C']\n\nfor loc in locales_to_try:\n    try:\n        locale.setlocale(locale.LC_TIME, loc)\n        print(f\"Locale {loc}:\")\n        print(f\"  Full date: {now.strftime('%A, %B %d, %Y')}\")\n        print(f\"  Short date: {now.strftime('%a, %b %d')}\")\n        break\n    except locale.Error:\n        continue\n",[3034],{"type":606,"tag":621,"props":3035,"children":3036},{"__ignoreMap":8},[3037,3049,3068,3075,3090,3097,3105,3141,3148,3171,3184,3202,3245,3302,3370,3378,3391],{"type":606,"tag":644,"props":3038,"children":3039},{"class":646,"line":12},[3040,3044],{"type":606,"tag":644,"props":3041,"children":3042},{"style":650},[3043],{"type":612,"value":664},{"type":606,"tag":644,"props":3045,"children":3046},{"style":656},[3047],{"type":612,"value":3048}," locale\n",{"type":606,"tag":644,"props":3050,"children":3051},{"class":646,"line":27},[3052,3056,3060,3064],{"type":606,"tag":644,"props":3053,"children":3054},{"style":650},[3055],{"type":612,"value":653},{"type":606,"tag":644,"props":3057,"children":3058},{"style":656},[3059],{"type":612,"value":659},{"type":606,"tag":644,"props":3061,"children":3062},{"style":650},[3063],{"type":612,"value":664},{"type":606,"tag":644,"props":3065,"children":3066},{"style":656},[3067],{"type":612,"value":669},{"type":606,"tag":644,"props":3069,"children":3070},{"class":646,"line":36},[3071],{"type":606,"tag":644,"props":3072,"children":3073},{"emptyLinePlaceholder":13},[3074],{"type":612,"value":677},{"type":606,"tag":644,"props":3076,"children":3077},{"class":646,"line":45},[3078,3082,3086],{"type":606,"tag":644,"props":3079,"children":3080},{"style":656},[3081],{"type":612,"value":685},{"type":606,"tag":644,"props":3083,"children":3084},{"style":650},[3085],{"type":612,"value":690},{"type":606,"tag":644,"props":3087,"children":3088},{"style":656},[3089],{"type":612,"value":695},{"type":606,"tag":644,"props":3091,"children":3092},{"class":646,"line":54},[3093],{"type":606,"tag":644,"props":3094,"children":3095},{"emptyLinePlaceholder":13},[3096],{"type":612,"value":677},{"type":606,"tag":644,"props":3098,"children":3099},{"class":646,"line":63},[3100],{"type":606,"tag":644,"props":3101,"children":3102},{"style":708},[3103],{"type":612,"value":3104},"# Try different locales (availability depends on system)\n",{"type":606,"tag":644,"props":3106,"children":3107},{"class":646,"line":72},[3108,3113,3117,3122,3127,3131,3136],{"type":606,"tag":644,"props":3109,"children":3110},{"style":656},[3111],{"type":612,"value":3112},"locales_to_try ",{"type":606,"tag":644,"props":3114,"children":3115},{"style":650},[3116],{"type":612,"value":690},{"type":606,"tag":644,"props":3118,"children":3119},{"style":656},[3120],{"type":612,"value":3121}," [",{"type":606,"tag":644,"props":3123,"children":3124},{"style":733},[3125],{"type":612,"value":3126},"'en_US'",{"type":606,"tag":644,"props":3128,"children":3129},{"style":656},[3130],{"type":612,"value":2247},{"type":606,"tag":644,"props":3132,"children":3133},{"style":733},[3134],{"type":612,"value":3135},"'C'",{"type":606,"tag":644,"props":3137,"children":3138},{"style":656},[3139],{"type":612,"value":3140},"]\n",{"type":606,"tag":644,"props":3142,"children":3143},{"class":646,"line":81},[3144],{"type":606,"tag":644,"props":3145,"children":3146},{"emptyLinePlaceholder":13},[3147],{"type":612,"value":677},{"type":606,"tag":644,"props":3149,"children":3150},{"class":646,"line":900},[3151,3156,3161,3166],{"type":606,"tag":644,"props":3152,"children":3153},{"style":650},[3154],{"type":612,"value":3155},"for",{"type":606,"tag":644,"props":3157,"children":3158},{"style":656},[3159],{"type":612,"value":3160}," loc ",{"type":606,"tag":644,"props":3162,"children":3163},{"style":650},[3164],{"type":612,"value":3165},"in",{"type":606,"tag":644,"props":3167,"children":3168},{"style":656},[3169],{"type":612,"value":3170}," locales_to_try:\n",{"type":606,"tag":644,"props":3172,"children":3173},{"class":646,"line":99},[3174,3179],{"type":606,"tag":644,"props":3175,"children":3176},{"style":650},[3177],{"type":612,"value":3178},"    try",{"type":606,"tag":644,"props":3180,"children":3181},{"style":656},[3182],{"type":612,"value":3183},":\n",{"type":606,"tag":644,"props":3185,"children":3186},{"class":646,"line":108},[3187,3192,3197],{"type":606,"tag":644,"props":3188,"children":3189},{"style":656},[3190],{"type":612,"value":3191},"        locale.setlocale(locale.",{"type":606,"tag":644,"props":3193,"children":3194},{"style":717},[3195],{"type":612,"value":3196},"LC_TIME",{"type":606,"tag":644,"props":3198,"children":3199},{"style":656},[3200],{"type":612,"value":3201},", loc)\n",{"type":606,"tag":644,"props":3203,"children":3204},{"class":646,"line":117},[3205,3210,3214,3218,3223,3227,3232,3236,3241],{"type":606,"tag":644,"props":3206,"children":3207},{"style":717},[3208],{"type":612,"value":3209},"        print",{"type":606,"tag":644,"props":3211,"children":3212},{"style":656},[3213],{"type":612,"value":725},{"type":606,"tag":644,"props":3215,"children":3216},{"style":650},[3217],{"type":612,"value":730},{"type":606,"tag":644,"props":3219,"children":3220},{"style":733},[3221],{"type":612,"value":3222},"\"Locale ",{"type":606,"tag":644,"props":3224,"children":3225},{"style":717},[3226],{"type":612,"value":741},{"type":606,"tag":644,"props":3228,"children":3229},{"style":656},[3230],{"type":612,"value":3231},"loc",{"type":606,"tag":644,"props":3233,"children":3234},{"style":717},[3235],{"type":612,"value":771},{"type":606,"tag":644,"props":3237,"children":3238},{"style":733},[3239],{"type":612,"value":3240},":\"",{"type":606,"tag":644,"props":3242,"children":3243},{"style":656},[3244],{"type":612,"value":781},{"type":606,"tag":644,"props":3246,"children":3247},{"class":646,"line":126},[3248,3252,3256,3260,3265,3269,3273,3277,3281,3286,3290,3294,3298],{"type":606,"tag":644,"props":3249,"children":3250},{"style":717},[3251],{"type":612,"value":3209},{"type":606,"tag":644,"props":3253,"children":3254},{"style":656},[3255],{"type":612,"value":725},{"type":606,"tag":644,"props":3257,"children":3258},{"style":650},[3259],{"type":612,"value":730},{"type":606,"tag":644,"props":3261,"children":3262},{"style":733},[3263],{"type":612,"value":3264},"\"  Full date: ",{"type":606,"tag":644,"props":3266,"children":3267},{"style":717},[3268],{"type":612,"value":741},{"type":606,"tag":644,"props":3270,"children":3271},{"style":656},[3272],{"type":612,"value":746},{"type":606,"tag":644,"props":3274,"children":3275},{"style":733},[3276],{"type":612,"value":2310},{"type":606,"tag":644,"props":3278,"children":3279},{"style":717},[3280],{"type":612,"value":756},{"type":606,"tag":644,"props":3282,"children":3283},{"style":733},[3284],{"type":612,"value":3285},", %Y'",{"type":606,"tag":644,"props":3287,"children":3288},{"style":656},[3289],{"type":612,"value":766},{"type":606,"tag":644,"props":3291,"children":3292},{"style":717},[3293],{"type":612,"value":771},{"type":606,"tag":644,"props":3295,"children":3296},{"style":733},[3297],{"type":612,"value":776},{"type":606,"tag":644,"props":3299,"children":3300},{"style":656},[3301],{"type":612,"value":781},{"type":606,"tag":644,"props":3303,"children":3304},{"class":646,"line":135},[3305,3309,3313,3317,3322,3326,3330,3334,3338,3342,3346,3350,3354,3358,3362,3366],{"type":606,"tag":644,"props":3306,"children":3307},{"style":717},[3308],{"type":612,"value":3209},{"type":606,"tag":644,"props":3310,"children":3311},{"style":656},[3312],{"type":612,"value":725},{"type":606,"tag":644,"props":3314,"children":3315},{"style":650},[3316],{"type":612,"value":730},{"type":606,"tag":644,"props":3318,"children":3319},{"style":733},[3320],{"type":612,"value":3321},"\"  Short date: ",{"type":606,"tag":644,"props":3323,"children":3324},{"style":717},[3325],{"type":612,"value":741},{"type":606,"tag":644,"props":3327,"children":3328},{"style":656},[3329],{"type":612,"value":746},{"type":606,"tag":644,"props":3331,"children":3332},{"style":733},[3333],{"type":612,"value":931},{"type":606,"tag":644,"props":3335,"children":3336},{"style":717},[3337],{"type":612,"value":1613},{"type":606,"tag":644,"props":3339,"children":3340},{"style":733},[3341],{"type":612,"value":2247},{"type":606,"tag":644,"props":3343,"children":3344},{"style":717},[3345],{"type":612,"value":936},{"type":606,"tag":644,"props":3347,"children":3348},{"style":717},[3349],{"type":612,"value":941},{"type":606,"tag":644,"props":3351,"children":3352},{"style":733},[3353],{"type":612,"value":931},{"type":606,"tag":644,"props":3355,"children":3356},{"style":656},[3357],{"type":612,"value":766},{"type":606,"tag":644,"props":3359,"children":3360},{"style":717},[3361],{"type":612,"value":771},{"type":606,"tag":644,"props":3363,"children":3364},{"style":733},[3365],{"type":612,"value":776},{"type":606,"tag":644,"props":3367,"children":3368},{"style":656},[3369],{"type":612,"value":781},{"type":606,"tag":644,"props":3371,"children":3372},{"class":646,"line":144},[3373],{"type":606,"tag":644,"props":3374,"children":3375},{"style":650},[3376],{"type":612,"value":3377},"        break\n",{"type":606,"tag":644,"props":3379,"children":3380},{"class":646,"line":153},[3381,3386],{"type":606,"tag":644,"props":3382,"children":3383},{"style":650},[3384],{"type":612,"value":3385},"    except",{"type":606,"tag":644,"props":3387,"children":3388},{"style":656},[3389],{"type":612,"value":3390}," locale.Error:\n",{"type":606,"tag":644,"props":3392,"children":3393},{"class":646,"line":163},[3394],{"type":606,"tag":644,"props":3395,"children":3396},{"style":650},[3397],{"type":612,"value":3398},"        continue\n",{"type":606,"tag":1118,"props":3400,"children":3402},{"id":3401},"custom-formatting-functions",[3403],{"type":612,"value":3404},"Custom Formatting Functions",{"type":606,"tag":630,"props":3406,"children":3407},{},[3408],{"type":606,"tag":634,"props":3409,"children":3411},{"className":636,"code":3410,"language":638,"meta":8,"style":8},"from datetime import datetime\n\ndef format_date_friendly(dt):\n    \"\"\"Format date in a friendly, readable way\"\"\"\n    return dt.strftime('%B %d, %Y')\n\ndef format_time_friendly(dt):\n    \"\"\"Format time in a friendly way\"\"\"\n    return dt.strftime('%I:%M %p').lstrip('0')\n\ndef format_datetime_log(dt):\n    \"\"\"Format for logging purposes\"\"\"\n    return dt.strftime('%Y-%m-%d %H:%M:%S.%f')[:-3]  # milliseconds\n\ndef format_filename_safe(dt):\n    \"\"\"Format safe for filenames\"\"\"\n    return dt.strftime('%Y%m%d_%H%M%S')\n\n# Example usage\nnow = datetime.now()\nprint(f\"Friendly date: {format_date_friendly(now)}\")\nprint(f\"Friendly time: {format_time_friendly(now)}\")\nprint(f\"Log format: {format_datetime_log(now)}\")\nprint(f\"Filename: {format_filename_safe(now)}\")\n",[3412],{"type":606,"tag":621,"props":3413,"children":3414},{"__ignoreMap":8},[3415,3434,3441,3460,3468,3497,3504,3520,3528,3558,3565,3581,3589,3646,3653,3669,3677,3704,3711,3719,3734,3775,3816,3856],{"type":606,"tag":644,"props":3416,"children":3417},{"class":646,"line":12},[3418,3422,3426,3430],{"type":606,"tag":644,"props":3419,"children":3420},{"style":650},[3421],{"type":612,"value":653},{"type":606,"tag":644,"props":3423,"children":3424},{"style":656},[3425],{"type":612,"value":659},{"type":606,"tag":644,"props":3427,"children":3428},{"style":650},[3429],{"type":612,"value":664},{"type":606,"tag":644,"props":3431,"children":3432},{"style":656},[3433],{"type":612,"value":669},{"type":606,"tag":644,"props":3435,"children":3436},{"class":646,"line":27},[3437],{"type":606,"tag":644,"props":3438,"children":3439},{"emptyLinePlaceholder":13},[3440],{"type":612,"value":677},{"type":606,"tag":644,"props":3442,"children":3443},{"class":646,"line":36},[3444,3449,3455],{"type":606,"tag":644,"props":3445,"children":3446},{"style":650},[3447],{"type":612,"value":3448},"def",{"type":606,"tag":644,"props":3450,"children":3452},{"style":3451},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[3453],{"type":612,"value":3454}," format_date_friendly",{"type":606,"tag":644,"props":3456,"children":3457},{"style":656},[3458],{"type":612,"value":3459},"(dt):\n",{"type":606,"tag":644,"props":3461,"children":3462},{"class":646,"line":45},[3463],{"type":606,"tag":644,"props":3464,"children":3465},{"style":733},[3466],{"type":612,"value":3467},"    \"\"\"Format date in a friendly, readable way\"\"\"\n",{"type":606,"tag":644,"props":3469,"children":3470},{"class":646,"line":54},[3471,3476,3481,3485,3489,3493],{"type":606,"tag":644,"props":3472,"children":3473},{"style":650},[3474],{"type":612,"value":3475},"    return",{"type":606,"tag":644,"props":3477,"children":3478},{"style":656},[3479],{"type":612,"value":3480}," dt.strftime(",{"type":606,"tag":644,"props":3482,"children":3483},{"style":733},[3484],{"type":612,"value":872},{"type":606,"tag":644,"props":3486,"children":3487},{"style":717},[3488],{"type":612,"value":756},{"type":606,"tag":644,"props":3490,"children":3491},{"style":733},[3492],{"type":612,"value":3285},{"type":606,"tag":644,"props":3494,"children":3495},{"style":656},[3496],{"type":612,"value":781},{"type":606,"tag":644,"props":3498,"children":3499},{"class":646,"line":63},[3500],{"type":606,"tag":644,"props":3501,"children":3502},{"emptyLinePlaceholder":13},[3503],{"type":612,"value":677},{"type":606,"tag":644,"props":3505,"children":3506},{"class":646,"line":72},[3507,3511,3516],{"type":606,"tag":644,"props":3508,"children":3509},{"style":650},[3510],{"type":612,"value":3448},{"type":606,"tag":644,"props":3512,"children":3513},{"style":3451},[3514],{"type":612,"value":3515}," format_time_friendly",{"type":606,"tag":644,"props":3517,"children":3518},{"style":656},[3519],{"type":612,"value":3459},{"type":606,"tag":644,"props":3521,"children":3522},{"class":646,"line":81},[3523],{"type":606,"tag":644,"props":3524,"children":3525},{"style":733},[3526],{"type":612,"value":3527},"    \"\"\"Format time in a friendly way\"\"\"\n",{"type":606,"tag":644,"props":3529,"children":3530},{"class":646,"line":900},[3531,3535,3539,3544,3549,3554],{"type":606,"tag":644,"props":3532,"children":3533},{"style":650},[3534],{"type":612,"value":3475},{"type":606,"tag":644,"props":3536,"children":3537},{"style":656},[3538],{"type":612,"value":3480},{"type":606,"tag":644,"props":3540,"children":3541},{"style":733},[3542],{"type":612,"value":3543},"'%I:%M %p'",{"type":606,"tag":644,"props":3545,"children":3546},{"style":656},[3547],{"type":612,"value":3548},").lstrip(",{"type":606,"tag":644,"props":3550,"children":3551},{"style":733},[3552],{"type":612,"value":3553},"'0'",{"type":606,"tag":644,"props":3555,"children":3556},{"style":656},[3557],{"type":612,"value":781},{"type":606,"tag":644,"props":3559,"children":3560},{"class":646,"line":99},[3561],{"type":606,"tag":644,"props":3562,"children":3563},{"emptyLinePlaceholder":13},[3564],{"type":612,"value":677},{"type":606,"tag":644,"props":3566,"children":3567},{"class":646,"line":108},[3568,3572,3577],{"type":606,"tag":644,"props":3569,"children":3570},{"style":650},[3571],{"type":612,"value":3448},{"type":606,"tag":644,"props":3573,"children":3574},{"style":3451},[3575],{"type":612,"value":3576}," format_datetime_log",{"type":606,"tag":644,"props":3578,"children":3579},{"style":656},[3580],{"type":612,"value":3459},{"type":606,"tag":644,"props":3582,"children":3583},{"class":646,"line":117},[3584],{"type":606,"tag":644,"props":3585,"children":3586},{"style":733},[3587],{"type":612,"value":3588},"    \"\"\"Format for logging purposes\"\"\"\n",{"type":606,"tag":644,"props":3590,"children":3591},{"class":646,"line":126},[3592,3596,3600,3604,3608,3613,3617,3621,3626,3631,3636,3641],{"type":606,"tag":644,"props":3593,"children":3594},{"style":650},[3595],{"type":612,"value":3475},{"type":606,"tag":644,"props":3597,"children":3598},{"style":656},[3599],{"type":612,"value":3480},{"type":606,"tag":644,"props":3601,"children":3602},{"style":733},[3603],{"type":612,"value":751},{"type":606,"tag":644,"props":3605,"children":3606},{"style":717},[3607],{"type":612,"value":756},{"type":606,"tag":644,"props":3609,"children":3610},{"style":733},[3611],{"type":612,"value":3612}," %H:%M:%S.",{"type":606,"tag":644,"props":3614,"children":3615},{"style":717},[3616],{"type":612,"value":2917},{"type":606,"tag":644,"props":3618,"children":3619},{"style":733},[3620],{"type":612,"value":931},{"type":606,"tag":644,"props":3622,"children":3623},{"style":656},[3624],{"type":612,"value":3625},")[:",{"type":606,"tag":644,"props":3627,"children":3628},{"style":650},[3629],{"type":612,"value":3630},"-",{"type":606,"tag":644,"props":3632,"children":3633},{"style":717},[3634],{"type":612,"value":3635},"3",{"type":606,"tag":644,"props":3637,"children":3638},{"style":656},[3639],{"type":612,"value":3640},"]  ",{"type":606,"tag":644,"props":3642,"children":3643},{"style":708},[3644],{"type":612,"value":3645},"# milliseconds\n",{"type":606,"tag":644,"props":3647,"children":3648},{"class":646,"line":135},[3649],{"type":606,"tag":644,"props":3650,"children":3651},{"emptyLinePlaceholder":13},[3652],{"type":612,"value":677},{"type":606,"tag":644,"props":3654,"children":3655},{"class":646,"line":144},[3656,3660,3665],{"type":606,"tag":644,"props":3657,"children":3658},{"style":650},[3659],{"type":612,"value":3448},{"type":606,"tag":644,"props":3661,"children":3662},{"style":3451},[3663],{"type":612,"value":3664}," format_filename_safe",{"type":606,"tag":644,"props":3666,"children":3667},{"style":656},[3668],{"type":612,"value":3459},{"type":606,"tag":644,"props":3670,"children":3671},{"class":646,"line":153},[3672],{"type":606,"tag":644,"props":3673,"children":3674},{"style":733},[3675],{"type":612,"value":3676},"    \"\"\"Format safe for filenames\"\"\"\n",{"type":606,"tag":644,"props":3678,"children":3679},{"class":646,"line":163},[3680,3684,3688,3692,3696,3700],{"type":606,"tag":644,"props":3681,"children":3682},{"style":650},[3683],{"type":612,"value":3475},{"type":606,"tag":644,"props":3685,"children":3686},{"style":656},[3687],{"type":612,"value":3480},{"type":606,"tag":644,"props":3689,"children":3690},{"style":733},[3691],{"type":612,"value":2382},{"type":606,"tag":644,"props":3693,"children":3694},{"style":717},[3695],{"type":612,"value":756},{"type":606,"tag":644,"props":3697,"children":3698},{"style":733},[3699],{"type":612,"value":2391},{"type":606,"tag":644,"props":3701,"children":3702},{"style":656},[3703],{"type":612,"value":781},{"type":606,"tag":644,"props":3705,"children":3706},{"class":646,"line":172},[3707],{"type":606,"tag":644,"props":3708,"children":3709},{"emptyLinePlaceholder":13},[3710],{"type":612,"value":677},{"type":606,"tag":644,"props":3712,"children":3713},{"class":646,"line":181},[3714],{"type":606,"tag":644,"props":3715,"children":3716},{"style":708},[3717],{"type":612,"value":3718},"# Example usage\n",{"type":606,"tag":644,"props":3720,"children":3721},{"class":646,"line":190},[3722,3726,3730],{"type":606,"tag":644,"props":3723,"children":3724},{"style":656},[3725],{"type":612,"value":685},{"type":606,"tag":644,"props":3727,"children":3728},{"style":650},[3729],{"type":612,"value":690},{"type":606,"tag":644,"props":3731,"children":3732},{"style":656},[3733],{"type":612,"value":695},{"type":606,"tag":644,"props":3735,"children":3736},{"class":646,"line":199},[3737,3741,3745,3749,3754,3758,3763,3767,3771],{"type":606,"tag":644,"props":3738,"children":3739},{"style":717},[3740],{"type":612,"value":720},{"type":606,"tag":644,"props":3742,"children":3743},{"style":656},[3744],{"type":612,"value":725},{"type":606,"tag":644,"props":3746,"children":3747},{"style":650},[3748],{"type":612,"value":730},{"type":606,"tag":644,"props":3750,"children":3751},{"style":733},[3752],{"type":612,"value":3753},"\"Friendly date: ",{"type":606,"tag":644,"props":3755,"children":3756},{"style":717},[3757],{"type":612,"value":741},{"type":606,"tag":644,"props":3759,"children":3760},{"style":656},[3761],{"type":612,"value":3762},"format_date_friendly(now)",{"type":606,"tag":644,"props":3764,"children":3765},{"style":717},[3766],{"type":612,"value":771},{"type":606,"tag":644,"props":3768,"children":3769},{"style":733},[3770],{"type":612,"value":776},{"type":606,"tag":644,"props":3772,"children":3773},{"style":656},[3774],{"type":612,"value":781},{"type":606,"tag":644,"props":3776,"children":3777},{"class":646,"line":208},[3778,3782,3786,3790,3795,3799,3804,3808,3812],{"type":606,"tag":644,"props":3779,"children":3780},{"style":717},[3781],{"type":612,"value":720},{"type":606,"tag":644,"props":3783,"children":3784},{"style":656},[3785],{"type":612,"value":725},{"type":606,"tag":644,"props":3787,"children":3788},{"style":650},[3789],{"type":612,"value":730},{"type":606,"tag":644,"props":3791,"children":3792},{"style":733},[3793],{"type":612,"value":3794},"\"Friendly time: ",{"type":606,"tag":644,"props":3796,"children":3797},{"style":717},[3798],{"type":612,"value":741},{"type":606,"tag":644,"props":3800,"children":3801},{"style":656},[3802],{"type":612,"value":3803},"format_time_friendly(now)",{"type":606,"tag":644,"props":3805,"children":3806},{"style":717},[3807],{"type":612,"value":771},{"type":606,"tag":644,"props":3809,"children":3810},{"style":733},[3811],{"type":612,"value":776},{"type":606,"tag":644,"props":3813,"children":3814},{"style":656},[3815],{"type":612,"value":781},{"type":606,"tag":644,"props":3817,"children":3818},{"class":646,"line":217},[3819,3823,3827,3831,3835,3839,3844,3848,3852],{"type":606,"tag":644,"props":3820,"children":3821},{"style":717},[3822],{"type":612,"value":720},{"type":606,"tag":644,"props":3824,"children":3825},{"style":656},[3826],{"type":612,"value":725},{"type":606,"tag":644,"props":3828,"children":3829},{"style":650},[3830],{"type":612,"value":730},{"type":606,"tag":644,"props":3832,"children":3833},{"style":733},[3834],{"type":612,"value":2170},{"type":606,"tag":644,"props":3836,"children":3837},{"style":717},[3838],{"type":612,"value":741},{"type":606,"tag":644,"props":3840,"children":3841},{"style":656},[3842],{"type":612,"value":3843},"format_datetime_log(now)",{"type":606,"tag":644,"props":3845,"children":3846},{"style":717},[3847],{"type":612,"value":771},{"type":606,"tag":644,"props":3849,"children":3850},{"style":733},[3851],{"type":612,"value":776},{"type":606,"tag":644,"props":3853,"children":3854},{"style":656},[3855],{"type":612,"value":781},{"type":606,"tag":644,"props":3857,"children":3858},{"class":646,"line":227},[3859,3863,3867,3871,3876,3880,3885,3889,3893],{"type":606,"tag":644,"props":3860,"children":3861},{"style":717},[3862],{"type":612,"value":720},{"type":606,"tag":644,"props":3864,"children":3865},{"style":656},[3866],{"type":612,"value":725},{"type":606,"tag":644,"props":3868,"children":3869},{"style":650},[3870],{"type":612,"value":730},{"type":606,"tag":644,"props":3872,"children":3873},{"style":733},[3874],{"type":612,"value":3875},"\"Filename: ",{"type":606,"tag":644,"props":3877,"children":3878},{"style":717},[3879],{"type":612,"value":741},{"type":606,"tag":644,"props":3881,"children":3882},{"style":656},[3883],{"type":612,"value":3884},"format_filename_safe(now)",{"type":606,"tag":644,"props":3886,"children":3887},{"style":717},[3888],{"type":612,"value":771},{"type":606,"tag":644,"props":3890,"children":3891},{"style":733},[3892],{"type":612,"value":776},{"type":606,"tag":644,"props":3894,"children":3895},{"style":656},[3896],{"type":612,"value":781},{"type":606,"tag":964,"props":3898,"children":3900},{"id":3899},"practical-formatting-examples",[3901],{"type":612,"value":3902},"📝 Practical Formatting Examples",{"type":606,"tag":615,"props":3904,"children":3905},{},[3906],{"type":612,"value":3907},"Real-world examples of date formatting in different contexts.",{"type":606,"tag":1118,"props":3909,"children":3911},{"id":3910},"user-interface-formatting",[3912],{"type":612,"value":3913},"User Interface Formatting",{"type":606,"tag":630,"props":3915,"children":3916},{},[3917],{"type":606,"tag":634,"props":3918,"children":3920},{"className":636,"code":3919,"language":638,"meta":8,"style":8},"from datetime import datetime, timedelta\n\ndef format_relative_time(dt):\n    \"\"\"Format time relative to now\"\"\"\n    now = datetime.now()\n    diff = now - dt\n    \n    if diff.days > 0:\n        return f\"{diff.days} days ago\"\n    elif diff.seconds > 3600:\n        hours = diff.seconds // 3600\n        return f\"{hours} hours ago\"\n    elif diff.seconds > 60:\n        minutes = diff.seconds // 60\n        return f\"{minutes} minutes ago\"\n    else:\n        return \"just now\"\n\n# Example usage\nrecent = datetime.now() - timedelta(minutes=30)\nyesterday = datetime.now() - timedelta(days=1)\n\nprint(f\"Recent: {format_relative_time(recent)}\")\nprint(f\"Yesterday: {format_relative_time(yesterday)}\")\n",[3921],{"type":606,"tag":621,"props":3922,"children":3923},{"__ignoreMap":8},[3924,3944,3951,3967,3975,3991,4017,4025,4052,4087,4113,4139,4172,4196,4221,4254,4266,4278,4285,4292,4335,4377,4384,4425],{"type":606,"tag":644,"props":3925,"children":3926},{"class":646,"line":12},[3927,3931,3935,3939],{"type":606,"tag":644,"props":3928,"children":3929},{"style":650},[3930],{"type":612,"value":653},{"type":606,"tag":644,"props":3932,"children":3933},{"style":656},[3934],{"type":612,"value":659},{"type":606,"tag":644,"props":3936,"children":3937},{"style":650},[3938],{"type":612,"value":664},{"type":606,"tag":644,"props":3940,"children":3941},{"style":656},[3942],{"type":612,"value":3943}," datetime, timedelta\n",{"type":606,"tag":644,"props":3945,"children":3946},{"class":646,"line":27},[3947],{"type":606,"tag":644,"props":3948,"children":3949},{"emptyLinePlaceholder":13},[3950],{"type":612,"value":677},{"type":606,"tag":644,"props":3952,"children":3953},{"class":646,"line":36},[3954,3958,3963],{"type":606,"tag":644,"props":3955,"children":3956},{"style":650},[3957],{"type":612,"value":3448},{"type":606,"tag":644,"props":3959,"children":3960},{"style":3451},[3961],{"type":612,"value":3962}," format_relative_time",{"type":606,"tag":644,"props":3964,"children":3965},{"style":656},[3966],{"type":612,"value":3459},{"type":606,"tag":644,"props":3968,"children":3969},{"class":646,"line":45},[3970],{"type":606,"tag":644,"props":3971,"children":3972},{"style":733},[3973],{"type":612,"value":3974},"    \"\"\"Format time relative to now\"\"\"\n",{"type":606,"tag":644,"props":3976,"children":3977},{"class":646,"line":54},[3978,3983,3987],{"type":606,"tag":644,"props":3979,"children":3980},{"style":656},[3981],{"type":612,"value":3982},"    now ",{"type":606,"tag":644,"props":3984,"children":3985},{"style":650},[3986],{"type":612,"value":690},{"type":606,"tag":644,"props":3988,"children":3989},{"style":656},[3990],{"type":612,"value":695},{"type":606,"tag":644,"props":3992,"children":3993},{"class":646,"line":63},[3994,3999,4003,4008,4012],{"type":606,"tag":644,"props":3995,"children":3996},{"style":656},[3997],{"type":612,"value":3998},"    diff ",{"type":606,"tag":644,"props":4000,"children":4001},{"style":650},[4002],{"type":612,"value":690},{"type":606,"tag":644,"props":4004,"children":4005},{"style":656},[4006],{"type":612,"value":4007}," now ",{"type":606,"tag":644,"props":4009,"children":4010},{"style":650},[4011],{"type":612,"value":3630},{"type":606,"tag":644,"props":4013,"children":4014},{"style":656},[4015],{"type":612,"value":4016}," dt\n",{"type":606,"tag":644,"props":4018,"children":4019},{"class":646,"line":72},[4020],{"type":606,"tag":644,"props":4021,"children":4022},{"style":656},[4023],{"type":612,"value":4024},"    \n",{"type":606,"tag":644,"props":4026,"children":4027},{"class":646,"line":81},[4028,4033,4038,4043,4048],{"type":606,"tag":644,"props":4029,"children":4030},{"style":650},[4031],{"type":612,"value":4032},"    if",{"type":606,"tag":644,"props":4034,"children":4035},{"style":656},[4036],{"type":612,"value":4037}," diff.days ",{"type":606,"tag":644,"props":4039,"children":4040},{"style":650},[4041],{"type":612,"value":4042},">",{"type":606,"tag":644,"props":4044,"children":4045},{"style":717},[4046],{"type":612,"value":4047}," 0",{"type":606,"tag":644,"props":4049,"children":4050},{"style":656},[4051],{"type":612,"value":3183},{"type":606,"tag":644,"props":4053,"children":4054},{"class":646,"line":900},[4055,4060,4065,4069,4073,4078,4082],{"type":606,"tag":644,"props":4056,"children":4057},{"style":650},[4058],{"type":612,"value":4059},"        return",{"type":606,"tag":644,"props":4061,"children":4062},{"style":650},[4063],{"type":612,"value":4064}," f",{"type":606,"tag":644,"props":4066,"children":4067},{"style":733},[4068],{"type":612,"value":776},{"type":606,"tag":644,"props":4070,"children":4071},{"style":717},[4072],{"type":612,"value":741},{"type":606,"tag":644,"props":4074,"children":4075},{"style":656},[4076],{"type":612,"value":4077},"diff.days",{"type":606,"tag":644,"props":4079,"children":4080},{"style":717},[4081],{"type":612,"value":771},{"type":606,"tag":644,"props":4083,"children":4084},{"style":733},[4085],{"type":612,"value":4086}," days ago\"\n",{"type":606,"tag":644,"props":4088,"children":4089},{"class":646,"line":99},[4090,4095,4100,4104,4109],{"type":606,"tag":644,"props":4091,"children":4092},{"style":650},[4093],{"type":612,"value":4094},"    elif",{"type":606,"tag":644,"props":4096,"children":4097},{"style":656},[4098],{"type":612,"value":4099}," diff.seconds ",{"type":606,"tag":644,"props":4101,"children":4102},{"style":650},[4103],{"type":612,"value":4042},{"type":606,"tag":644,"props":4105,"children":4106},{"style":717},[4107],{"type":612,"value":4108}," 3600",{"type":606,"tag":644,"props":4110,"children":4111},{"style":656},[4112],{"type":612,"value":3183},{"type":606,"tag":644,"props":4114,"children":4115},{"class":646,"line":108},[4116,4121,4125,4129,4134],{"type":606,"tag":644,"props":4117,"children":4118},{"style":656},[4119],{"type":612,"value":4120},"        hours ",{"type":606,"tag":644,"props":4122,"children":4123},{"style":650},[4124],{"type":612,"value":690},{"type":606,"tag":644,"props":4126,"children":4127},{"style":656},[4128],{"type":612,"value":4099},{"type":606,"tag":644,"props":4130,"children":4131},{"style":650},[4132],{"type":612,"value":4133},"//",{"type":606,"tag":644,"props":4135,"children":4136},{"style":717},[4137],{"type":612,"value":4138}," 3600\n",{"type":606,"tag":644,"props":4140,"children":4141},{"class":646,"line":117},[4142,4146,4150,4154,4158,4163,4167],{"type":606,"tag":644,"props":4143,"children":4144},{"style":650},[4145],{"type":612,"value":4059},{"type":606,"tag":644,"props":4147,"children":4148},{"style":650},[4149],{"type":612,"value":4064},{"type":606,"tag":644,"props":4151,"children":4152},{"style":733},[4153],{"type":612,"value":776},{"type":606,"tag":644,"props":4155,"children":4156},{"style":717},[4157],{"type":612,"value":741},{"type":606,"tag":644,"props":4159,"children":4160},{"style":656},[4161],{"type":612,"value":4162},"hours",{"type":606,"tag":644,"props":4164,"children":4165},{"style":717},[4166],{"type":612,"value":771},{"type":606,"tag":644,"props":4168,"children":4169},{"style":733},[4170],{"type":612,"value":4171}," hours ago\"\n",{"type":606,"tag":644,"props":4173,"children":4174},{"class":646,"line":126},[4175,4179,4183,4187,4192],{"type":606,"tag":644,"props":4176,"children":4177},{"style":650},[4178],{"type":612,"value":4094},{"type":606,"tag":644,"props":4180,"children":4181},{"style":656},[4182],{"type":612,"value":4099},{"type":606,"tag":644,"props":4184,"children":4185},{"style":650},[4186],{"type":612,"value":4042},{"type":606,"tag":644,"props":4188,"children":4189},{"style":717},[4190],{"type":612,"value":4191}," 60",{"type":606,"tag":644,"props":4193,"children":4194},{"style":656},[4195],{"type":612,"value":3183},{"type":606,"tag":644,"props":4197,"children":4198},{"class":646,"line":135},[4199,4204,4208,4212,4216],{"type":606,"tag":644,"props":4200,"children":4201},{"style":656},[4202],{"type":612,"value":4203},"        minutes ",{"type":606,"tag":644,"props":4205,"children":4206},{"style":650},[4207],{"type":612,"value":690},{"type":606,"tag":644,"props":4209,"children":4210},{"style":656},[4211],{"type":612,"value":4099},{"type":606,"tag":644,"props":4213,"children":4214},{"style":650},[4215],{"type":612,"value":4133},{"type":606,"tag":644,"props":4217,"children":4218},{"style":717},[4219],{"type":612,"value":4220}," 60\n",{"type":606,"tag":644,"props":4222,"children":4223},{"class":646,"line":144},[4224,4228,4232,4236,4240,4245,4249],{"type":606,"tag":644,"props":4225,"children":4226},{"style":650},[4227],{"type":612,"value":4059},{"type":606,"tag":644,"props":4229,"children":4230},{"style":650},[4231],{"type":612,"value":4064},{"type":606,"tag":644,"props":4233,"children":4234},{"style":733},[4235],{"type":612,"value":776},{"type":606,"tag":644,"props":4237,"children":4238},{"style":717},[4239],{"type":612,"value":741},{"type":606,"tag":644,"props":4241,"children":4242},{"style":656},[4243],{"type":612,"value":4244},"minutes",{"type":606,"tag":644,"props":4246,"children":4247},{"style":717},[4248],{"type":612,"value":771},{"type":606,"tag":644,"props":4250,"children":4251},{"style":733},[4252],{"type":612,"value":4253}," minutes ago\"\n",{"type":606,"tag":644,"props":4255,"children":4256},{"class":646,"line":153},[4257,4262],{"type":606,"tag":644,"props":4258,"children":4259},{"style":650},[4260],{"type":612,"value":4261},"    else",{"type":606,"tag":644,"props":4263,"children":4264},{"style":656},[4265],{"type":612,"value":3183},{"type":606,"tag":644,"props":4267,"children":4268},{"class":646,"line":163},[4269,4273],{"type":606,"tag":644,"props":4270,"children":4271},{"style":650},[4272],{"type":612,"value":4059},{"type":606,"tag":644,"props":4274,"children":4275},{"style":733},[4276],{"type":612,"value":4277}," \"just now\"\n",{"type":606,"tag":644,"props":4279,"children":4280},{"class":646,"line":172},[4281],{"type":606,"tag":644,"props":4282,"children":4283},{"emptyLinePlaceholder":13},[4284],{"type":612,"value":677},{"type":606,"tag":644,"props":4286,"children":4287},{"class":646,"line":181},[4288],{"type":606,"tag":644,"props":4289,"children":4290},{"style":708},[4291],{"type":612,"value":3718},{"type":606,"tag":644,"props":4293,"children":4294},{"class":646,"line":190},[4295,4300,4304,4309,4313,4318,4323,4327,4331],{"type":606,"tag":644,"props":4296,"children":4297},{"style":656},[4298],{"type":612,"value":4299},"recent ",{"type":606,"tag":644,"props":4301,"children":4302},{"style":650},[4303],{"type":612,"value":690},{"type":606,"tag":644,"props":4305,"children":4306},{"style":656},[4307],{"type":612,"value":4308}," datetime.now() ",{"type":606,"tag":644,"props":4310,"children":4311},{"style":650},[4312],{"type":612,"value":3630},{"type":606,"tag":644,"props":4314,"children":4315},{"style":656},[4316],{"type":612,"value":4317}," timedelta(",{"type":606,"tag":644,"props":4319,"children":4321},{"style":4320},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[4322],{"type":612,"value":4244},{"type":606,"tag":644,"props":4324,"children":4325},{"style":650},[4326],{"type":612,"value":690},{"type":606,"tag":644,"props":4328,"children":4329},{"style":717},[4330],{"type":612,"value":2879},{"type":606,"tag":644,"props":4332,"children":4333},{"style":656},[4334],{"type":612,"value":781},{"type":606,"tag":644,"props":4336,"children":4337},{"class":646,"line":199},[4338,4343,4347,4351,4355,4359,4364,4368,4373],{"type":606,"tag":644,"props":4339,"children":4340},{"style":656},[4341],{"type":612,"value":4342},"yesterday ",{"type":606,"tag":644,"props":4344,"children":4345},{"style":650},[4346],{"type":612,"value":690},{"type":606,"tag":644,"props":4348,"children":4349},{"style":656},[4350],{"type":612,"value":4308},{"type":606,"tag":644,"props":4352,"children":4353},{"style":650},[4354],{"type":612,"value":3630},{"type":606,"tag":644,"props":4356,"children":4357},{"style":656},[4358],{"type":612,"value":4317},{"type":606,"tag":644,"props":4360,"children":4361},{"style":4320},[4362],{"type":612,"value":4363},"days",{"type":606,"tag":644,"props":4365,"children":4366},{"style":650},[4367],{"type":612,"value":690},{"type":606,"tag":644,"props":4369,"children":4370},{"style":717},[4371],{"type":612,"value":4372},"1",{"type":606,"tag":644,"props":4374,"children":4375},{"style":656},[4376],{"type":612,"value":781},{"type":606,"tag":644,"props":4378,"children":4379},{"class":646,"line":208},[4380],{"type":606,"tag":644,"props":4381,"children":4382},{"emptyLinePlaceholder":13},[4383],{"type":612,"value":677},{"type":606,"tag":644,"props":4385,"children":4386},{"class":646,"line":217},[4387,4391,4395,4399,4404,4408,4413,4417,4421],{"type":606,"tag":644,"props":4388,"children":4389},{"style":717},[4390],{"type":612,"value":720},{"type":606,"tag":644,"props":4392,"children":4393},{"style":656},[4394],{"type":612,"value":725},{"type":606,"tag":644,"props":4396,"children":4397},{"style":650},[4398],{"type":612,"value":730},{"type":606,"tag":644,"props":4400,"children":4401},{"style":733},[4402],{"type":612,"value":4403},"\"Recent: ",{"type":606,"tag":644,"props":4405,"children":4406},{"style":717},[4407],{"type":612,"value":741},{"type":606,"tag":644,"props":4409,"children":4410},{"style":656},[4411],{"type":612,"value":4412},"format_relative_time(recent)",{"type":606,"tag":644,"props":4414,"children":4415},{"style":717},[4416],{"type":612,"value":771},{"type":606,"tag":644,"props":4418,"children":4419},{"style":733},[4420],{"type":612,"value":776},{"type":606,"tag":644,"props":4422,"children":4423},{"style":656},[4424],{"type":612,"value":781},{"type":606,"tag":644,"props":4426,"children":4427},{"class":646,"line":227},[4428,4432,4436,4440,4445,4449,4454,4458,4462],{"type":606,"tag":644,"props":4429,"children":4430},{"style":717},[4431],{"type":612,"value":720},{"type":606,"tag":644,"props":4433,"children":4434},{"style":656},[4435],{"type":612,"value":725},{"type":606,"tag":644,"props":4437,"children":4438},{"style":650},[4439],{"type":612,"value":730},{"type":606,"tag":644,"props":4441,"children":4442},{"style":733},[4443],{"type":612,"value":4444},"\"Yesterday: ",{"type":606,"tag":644,"props":4446,"children":4447},{"style":717},[4448],{"type":612,"value":741},{"type":606,"tag":644,"props":4450,"children":4451},{"style":656},[4452],{"type":612,"value":4453},"format_relative_time(yesterday)",{"type":606,"tag":644,"props":4455,"children":4456},{"style":717},[4457],{"type":612,"value":771},{"type":606,"tag":644,"props":4459,"children":4460},{"style":733},[4461],{"type":612,"value":776},{"type":606,"tag":644,"props":4463,"children":4464},{"style":656},[4465],{"type":612,"value":781},{"type":606,"tag":1118,"props":4467,"children":4469},{"id":4468},"report-formatting",[4470],{"type":612,"value":4471},"Report Formatting",{"type":606,"tag":630,"props":4473,"children":4474},{},[4475],{"type":606,"tag":634,"props":4476,"children":4478},{"className":636,"code":4477,"language":638,"meta":8,"style":8},"from datetime import datetime\n\ndef create_report_header(title):\n    \"\"\"Create formatted report header\"\"\"\n    now = datetime.now()\n    formatted_date = now.strftime('%B %d, %Y')\n    formatted_time = now.strftime('%I:%M %p')\n    \n    header = f\"\"\"\n{'='*50}\n{title.upper()}\nGenerated on: {formatted_date} at {formatted_time}\n{'='*50}\n\"\"\"\n    return header\n\ndef format_event_log(events):\n    \"\"\"Format list of events with timestamps\"\"\"\n    formatted_events = []\n    for event in events:\n        timestamp = event['time'].strftime('%H:%M:%S')\n        formatted_events.append(f\"[{timestamp}] {event['message']}\")\n    return '\\n'.join(formatted_events)\n\n# Example usage\nprint(create_report_header(\"Daily Sales Report\"))\n\nevents = [\n    {'time': datetime(2024, 3, 15, 9, 30), 'message': 'System startup'},\n    {'time': datetime(2024, 3, 15, 10, 15), 'message': 'User login'},\n    {'time': datetime(2024, 3, 15, 11, 0), 'message': 'Data backup completed'}\n]\n\nprint(format_event_log(events))\n",[4479],{"type":606,"tag":621,"props":4480,"children":4481},{"__ignoreMap":8},[4482,4501,4508,4525,4533,4548,4581,4605,4612,4633,4655,4672,4711,4730,4737,4749,4756,4773,4781,4798,4820,4855,4921,4947,4954,4961,4983,4990,5007,5084,5157,5231,5238,5245],{"type":606,"tag":644,"props":4483,"children":4484},{"class":646,"line":12},[4485,4489,4493,4497],{"type":606,"tag":644,"props":4486,"children":4487},{"style":650},[4488],{"type":612,"value":653},{"type":606,"tag":644,"props":4490,"children":4491},{"style":656},[4492],{"type":612,"value":659},{"type":606,"tag":644,"props":4494,"children":4495},{"style":650},[4496],{"type":612,"value":664},{"type":606,"tag":644,"props":4498,"children":4499},{"style":656},[4500],{"type":612,"value":669},{"type":606,"tag":644,"props":4502,"children":4503},{"class":646,"line":27},[4504],{"type":606,"tag":644,"props":4505,"children":4506},{"emptyLinePlaceholder":13},[4507],{"type":612,"value":677},{"type":606,"tag":644,"props":4509,"children":4510},{"class":646,"line":36},[4511,4515,4520],{"type":606,"tag":644,"props":4512,"children":4513},{"style":650},[4514],{"type":612,"value":3448},{"type":606,"tag":644,"props":4516,"children":4517},{"style":3451},[4518],{"type":612,"value":4519}," create_report_header",{"type":606,"tag":644,"props":4521,"children":4522},{"style":656},[4523],{"type":612,"value":4524},"(title):\n",{"type":606,"tag":644,"props":4526,"children":4527},{"class":646,"line":45},[4528],{"type":606,"tag":644,"props":4529,"children":4530},{"style":733},[4531],{"type":612,"value":4532},"    \"\"\"Create formatted report header\"\"\"\n",{"type":606,"tag":644,"props":4534,"children":4535},{"class":646,"line":54},[4536,4540,4544],{"type":606,"tag":644,"props":4537,"children":4538},{"style":656},[4539],{"type":612,"value":3982},{"type":606,"tag":644,"props":4541,"children":4542},{"style":650},[4543],{"type":612,"value":690},{"type":606,"tag":644,"props":4545,"children":4546},{"style":656},[4547],{"type":612,"value":695},{"type":606,"tag":644,"props":4549,"children":4550},{"class":646,"line":63},[4551,4556,4560,4565,4569,4573,4577],{"type":606,"tag":644,"props":4552,"children":4553},{"style":656},[4554],{"type":612,"value":4555},"    formatted_date ",{"type":606,"tag":644,"props":4557,"children":4558},{"style":650},[4559],{"type":612,"value":690},{"type":606,"tag":644,"props":4561,"children":4562},{"style":656},[4563],{"type":612,"value":4564}," now.strftime(",{"type":606,"tag":644,"props":4566,"children":4567},{"style":733},[4568],{"type":612,"value":872},{"type":606,"tag":644,"props":4570,"children":4571},{"style":717},[4572],{"type":612,"value":756},{"type":606,"tag":644,"props":4574,"children":4575},{"style":733},[4576],{"type":612,"value":3285},{"type":606,"tag":644,"props":4578,"children":4579},{"style":656},[4580],{"type":612,"value":781},{"type":606,"tag":644,"props":4582,"children":4583},{"class":646,"line":72},[4584,4589,4593,4597,4601],{"type":606,"tag":644,"props":4585,"children":4586},{"style":656},[4587],{"type":612,"value":4588},"    formatted_time ",{"type":606,"tag":644,"props":4590,"children":4591},{"style":650},[4592],{"type":612,"value":690},{"type":606,"tag":644,"props":4594,"children":4595},{"style":656},[4596],{"type":612,"value":4564},{"type":606,"tag":644,"props":4598,"children":4599},{"style":733},[4600],{"type":612,"value":3543},{"type":606,"tag":644,"props":4602,"children":4603},{"style":656},[4604],{"type":612,"value":781},{"type":606,"tag":644,"props":4606,"children":4607},{"class":646,"line":81},[4608],{"type":606,"tag":644,"props":4609,"children":4610},{"style":656},[4611],{"type":612,"value":4024},{"type":606,"tag":644,"props":4613,"children":4614},{"class":646,"line":900},[4615,4620,4624,4628],{"type":606,"tag":644,"props":4616,"children":4617},{"style":656},[4618],{"type":612,"value":4619},"    header ",{"type":606,"tag":644,"props":4621,"children":4622},{"style":650},[4623],{"type":612,"value":690},{"type":606,"tag":644,"props":4625,"children":4626},{"style":650},[4627],{"type":612,"value":4064},{"type":606,"tag":644,"props":4629,"children":4630},{"style":733},[4631],{"type":612,"value":4632},"\"\"\"\n",{"type":606,"tag":644,"props":4634,"children":4635},{"class":646,"line":99},[4636,4640,4645,4650],{"type":606,"tag":644,"props":4637,"children":4638},{"style":717},[4639],{"type":612,"value":741},{"type":606,"tag":644,"props":4641,"children":4642},{"style":733},[4643],{"type":612,"value":4644},"'='",{"type":606,"tag":644,"props":4646,"children":4647},{"style":650},[4648],{"type":612,"value":4649},"*",{"type":606,"tag":644,"props":4651,"children":4652},{"style":717},[4653],{"type":612,"value":4654},"50}\n",{"type":606,"tag":644,"props":4656,"children":4657},{"class":646,"line":108},[4658,4662,4667],{"type":606,"tag":644,"props":4659,"children":4660},{"style":717},[4661],{"type":612,"value":741},{"type":606,"tag":644,"props":4663,"children":4664},{"style":656},[4665],{"type":612,"value":4666},"title.upper()",{"type":606,"tag":644,"props":4668,"children":4669},{"style":717},[4670],{"type":612,"value":4671},"}\n",{"type":606,"tag":644,"props":4673,"children":4674},{"class":646,"line":117},[4675,4680,4684,4689,4693,4698,4702,4707],{"type":606,"tag":644,"props":4676,"children":4677},{"style":733},[4678],{"type":612,"value":4679},"Generated on: ",{"type":606,"tag":644,"props":4681,"children":4682},{"style":717},[4683],{"type":612,"value":741},{"type":606,"tag":644,"props":4685,"children":4686},{"style":656},[4687],{"type":612,"value":4688},"formatted_date",{"type":606,"tag":644,"props":4690,"children":4691},{"style":717},[4692],{"type":612,"value":771},{"type":606,"tag":644,"props":4694,"children":4695},{"style":733},[4696],{"type":612,"value":4697}," at ",{"type":606,"tag":644,"props":4699,"children":4700},{"style":717},[4701],{"type":612,"value":741},{"type":606,"tag":644,"props":4703,"children":4704},{"style":656},[4705],{"type":612,"value":4706},"formatted_time",{"type":606,"tag":644,"props":4708,"children":4709},{"style":717},[4710],{"type":612,"value":4671},{"type":606,"tag":644,"props":4712,"children":4713},{"class":646,"line":126},[4714,4718,4722,4726],{"type":606,"tag":644,"props":4715,"children":4716},{"style":717},[4717],{"type":612,"value":741},{"type":606,"tag":644,"props":4719,"children":4720},{"style":733},[4721],{"type":612,"value":4644},{"type":606,"tag":644,"props":4723,"children":4724},{"style":650},[4725],{"type":612,"value":4649},{"type":606,"tag":644,"props":4727,"children":4728},{"style":717},[4729],{"type":612,"value":4654},{"type":606,"tag":644,"props":4731,"children":4732},{"class":646,"line":135},[4733],{"type":606,"tag":644,"props":4734,"children":4735},{"style":733},[4736],{"type":612,"value":4632},{"type":606,"tag":644,"props":4738,"children":4739},{"class":646,"line":144},[4740,4744],{"type":606,"tag":644,"props":4741,"children":4742},{"style":650},[4743],{"type":612,"value":3475},{"type":606,"tag":644,"props":4745,"children":4746},{"style":656},[4747],{"type":612,"value":4748}," header\n",{"type":606,"tag":644,"props":4750,"children":4751},{"class":646,"line":153},[4752],{"type":606,"tag":644,"props":4753,"children":4754},{"emptyLinePlaceholder":13},[4755],{"type":612,"value":677},{"type":606,"tag":644,"props":4757,"children":4758},{"class":646,"line":163},[4759,4763,4768],{"type":606,"tag":644,"props":4760,"children":4761},{"style":650},[4762],{"type":612,"value":3448},{"type":606,"tag":644,"props":4764,"children":4765},{"style":3451},[4766],{"type":612,"value":4767}," format_event_log",{"type":606,"tag":644,"props":4769,"children":4770},{"style":656},[4771],{"type":612,"value":4772},"(events):\n",{"type":606,"tag":644,"props":4774,"children":4775},{"class":646,"line":172},[4776],{"type":606,"tag":644,"props":4777,"children":4778},{"style":733},[4779],{"type":612,"value":4780},"    \"\"\"Format list of events with timestamps\"\"\"\n",{"type":606,"tag":644,"props":4782,"children":4783},{"class":646,"line":181},[4784,4789,4793],{"type":606,"tag":644,"props":4785,"children":4786},{"style":656},[4787],{"type":612,"value":4788},"    formatted_events ",{"type":606,"tag":644,"props":4790,"children":4791},{"style":650},[4792],{"type":612,"value":690},{"type":606,"tag":644,"props":4794,"children":4795},{"style":656},[4796],{"type":612,"value":4797}," []\n",{"type":606,"tag":644,"props":4799,"children":4800},{"class":646,"line":190},[4801,4806,4811,4815],{"type":606,"tag":644,"props":4802,"children":4803},{"style":650},[4804],{"type":612,"value":4805},"    for",{"type":606,"tag":644,"props":4807,"children":4808},{"style":656},[4809],{"type":612,"value":4810}," event ",{"type":606,"tag":644,"props":4812,"children":4813},{"style":650},[4814],{"type":612,"value":3165},{"type":606,"tag":644,"props":4816,"children":4817},{"style":656},[4818],{"type":612,"value":4819}," events:\n",{"type":606,"tag":644,"props":4821,"children":4822},{"class":646,"line":199},[4823,4828,4832,4837,4842,4847,4851],{"type":606,"tag":644,"props":4824,"children":4825},{"style":656},[4826],{"type":612,"value":4827},"        timestamp ",{"type":606,"tag":644,"props":4829,"children":4830},{"style":650},[4831],{"type":612,"value":690},{"type":606,"tag":644,"props":4833,"children":4834},{"style":656},[4835],{"type":612,"value":4836}," event[",{"type":606,"tag":644,"props":4838,"children":4839},{"style":733},[4840],{"type":612,"value":4841},"'time'",{"type":606,"tag":644,"props":4843,"children":4844},{"style":656},[4845],{"type":612,"value":4846},"].strftime(",{"type":606,"tag":644,"props":4848,"children":4849},{"style":733},[4850],{"type":612,"value":1738},{"type":606,"tag":644,"props":4852,"children":4853},{"style":656},[4854],{"type":612,"value":781},{"type":606,"tag":644,"props":4856,"children":4857},{"class":646,"line":208},[4858,4863,4867,4872,4876,4881,4885,4890,4894,4899,4904,4909,4913,4917],{"type":606,"tag":644,"props":4859,"children":4860},{"style":656},[4861],{"type":612,"value":4862},"        formatted_events.append(",{"type":606,"tag":644,"props":4864,"children":4865},{"style":650},[4866],{"type":612,"value":730},{"type":606,"tag":644,"props":4868,"children":4869},{"style":733},[4870],{"type":612,"value":4871},"\"[",{"type":606,"tag":644,"props":4873,"children":4874},{"style":717},[4875],{"type":612,"value":741},{"type":606,"tag":644,"props":4877,"children":4878},{"style":656},[4879],{"type":612,"value":4880},"timestamp",{"type":606,"tag":644,"props":4882,"children":4883},{"style":717},[4884],{"type":612,"value":771},{"type":606,"tag":644,"props":4886,"children":4887},{"style":733},[4888],{"type":612,"value":4889},"] ",{"type":606,"tag":644,"props":4891,"children":4892},{"style":717},[4893],{"type":612,"value":741},{"type":606,"tag":644,"props":4895,"children":4896},{"style":656},[4897],{"type":612,"value":4898},"event[",{"type":606,"tag":644,"props":4900,"children":4901},{"style":733},[4902],{"type":612,"value":4903},"'message'",{"type":606,"tag":644,"props":4905,"children":4906},{"style":656},[4907],{"type":612,"value":4908},"]",{"type":606,"tag":644,"props":4910,"children":4911},{"style":717},[4912],{"type":612,"value":771},{"type":606,"tag":644,"props":4914,"children":4915},{"style":733},[4916],{"type":612,"value":776},{"type":606,"tag":644,"props":4918,"children":4919},{"style":656},[4920],{"type":612,"value":781},{"type":606,"tag":644,"props":4922,"children":4923},{"class":646,"line":217},[4924,4928,4933,4938,4942],{"type":606,"tag":644,"props":4925,"children":4926},{"style":650},[4927],{"type":612,"value":3475},{"type":606,"tag":644,"props":4929,"children":4930},{"style":733},[4931],{"type":612,"value":4932}," '",{"type":606,"tag":644,"props":4934,"children":4935},{"style":717},[4936],{"type":612,"value":4937},"\\n",{"type":606,"tag":644,"props":4939,"children":4940},{"style":733},[4941],{"type":612,"value":931},{"type":606,"tag":644,"props":4943,"children":4944},{"style":656},[4945],{"type":612,"value":4946},".join(formatted_events)\n",{"type":606,"tag":644,"props":4948,"children":4949},{"class":646,"line":227},[4950],{"type":606,"tag":644,"props":4951,"children":4952},{"emptyLinePlaceholder":13},[4953],{"type":612,"value":677},{"type":606,"tag":644,"props":4955,"children":4956},{"class":646,"line":236},[4957],{"type":606,"tag":644,"props":4958,"children":4959},{"style":708},[4960],{"type":612,"value":3718},{"type":606,"tag":644,"props":4962,"children":4963},{"class":646,"line":245},[4964,4968,4973,4978],{"type":606,"tag":644,"props":4965,"children":4966},{"style":717},[4967],{"type":612,"value":720},{"type":606,"tag":644,"props":4969,"children":4970},{"style":656},[4971],{"type":612,"value":4972},"(create_report_header(",{"type":606,"tag":644,"props":4974,"children":4975},{"style":733},[4976],{"type":612,"value":4977},"\"Daily Sales Report\"",{"type":606,"tag":644,"props":4979,"children":4980},{"style":656},[4981],{"type":612,"value":4982},"))\n",{"type":606,"tag":644,"props":4984,"children":4985},{"class":646,"line":254},[4986],{"type":606,"tag":644,"props":4987,"children":4988},{"emptyLinePlaceholder":13},[4989],{"type":612,"value":677},{"type":606,"tag":644,"props":4991,"children":4992},{"class":646,"line":263},[4993,4998,5002],{"type":606,"tag":644,"props":4994,"children":4995},{"style":656},[4996],{"type":612,"value":4997},"events ",{"type":606,"tag":644,"props":4999,"children":5000},{"style":650},[5001],{"type":612,"value":690},{"type":606,"tag":644,"props":5003,"children":5004},{"style":656},[5005],{"type":612,"value":5006}," [\n",{"type":606,"tag":644,"props":5008,"children":5009},{"class":646,"line":272},[5010,5015,5019,5024,5028,5032,5036,5040,5044,5048,5053,5057,5061,5066,5070,5074,5079],{"type":606,"tag":644,"props":5011,"children":5012},{"style":656},[5013],{"type":612,"value":5014},"    {",{"type":606,"tag":644,"props":5016,"children":5017},{"style":733},[5018],{"type":612,"value":4841},{"type":606,"tag":644,"props":5020,"children":5021},{"style":656},[5022],{"type":612,"value":5023},": datetime(",{"type":606,"tag":644,"props":5025,"children":5026},{"style":717},[5027],{"type":612,"value":2540},{"type":606,"tag":644,"props":5029,"children":5030},{"style":656},[5031],{"type":612,"value":2247},{"type":606,"tag":644,"props":5033,"children":5034},{"style":717},[5035],{"type":612,"value":3635},{"type":606,"tag":644,"props":5037,"children":5038},{"style":656},[5039],{"type":612,"value":2247},{"type":606,"tag":644,"props":5041,"children":5042},{"style":717},[5043],{"type":612,"value":2668},{"type":606,"tag":644,"props":5045,"children":5046},{"style":656},[5047],{"type":612,"value":2247},{"type":606,"tag":644,"props":5049,"children":5050},{"style":717},[5051],{"type":612,"value":5052},"9",{"type":606,"tag":644,"props":5054,"children":5055},{"style":656},[5056],{"type":612,"value":2247},{"type":606,"tag":644,"props":5058,"children":5059},{"style":717},[5060],{"type":612,"value":2879},{"type":606,"tag":644,"props":5062,"children":5063},{"style":656},[5064],{"type":612,"value":5065},"), ",{"type":606,"tag":644,"props":5067,"children":5068},{"style":733},[5069],{"type":612,"value":4903},{"type":606,"tag":644,"props":5071,"children":5072},{"style":656},[5073],{"type":612,"value":992},{"type":606,"tag":644,"props":5075,"children":5076},{"style":733},[5077],{"type":612,"value":5078},"'System startup'",{"type":606,"tag":644,"props":5080,"children":5081},{"style":656},[5082],{"type":612,"value":5083},"},\n",{"type":606,"tag":644,"props":5085,"children":5086},{"class":646,"line":281},[5087,5091,5095,5099,5103,5107,5111,5115,5119,5123,5128,5132,5136,5140,5144,5148,5153],{"type":606,"tag":644,"props":5088,"children":5089},{"style":656},[5090],{"type":612,"value":5014},{"type":606,"tag":644,"props":5092,"children":5093},{"style":733},[5094],{"type":612,"value":4841},{"type":606,"tag":644,"props":5096,"children":5097},{"style":656},[5098],{"type":612,"value":5023},{"type":606,"tag":644,"props":5100,"children":5101},{"style":717},[5102],{"type":612,"value":2540},{"type":606,"tag":644,"props":5104,"children":5105},{"style":656},[5106],{"type":612,"value":2247},{"type":606,"tag":644,"props":5108,"children":5109},{"style":717},[5110],{"type":612,"value":3635},{"type":606,"tag":644,"props":5112,"children":5113},{"style":656},[5114],{"type":612,"value":2247},{"type":606,"tag":644,"props":5116,"children":5117},{"style":717},[5118],{"type":612,"value":2668},{"type":606,"tag":644,"props":5120,"children":5121},{"style":656},[5122],{"type":612,"value":2247},{"type":606,"tag":644,"props":5124,"children":5125},{"style":717},[5126],{"type":612,"value":5127},"10",{"type":606,"tag":644,"props":5129,"children":5130},{"style":656},[5131],{"type":612,"value":2247},{"type":606,"tag":644,"props":5133,"children":5134},{"style":717},[5135],{"type":612,"value":2668},{"type":606,"tag":644,"props":5137,"children":5138},{"style":656},[5139],{"type":612,"value":5065},{"type":606,"tag":644,"props":5141,"children":5142},{"style":733},[5143],{"type":612,"value":4903},{"type":606,"tag":644,"props":5145,"children":5146},{"style":656},[5147],{"type":612,"value":992},{"type":606,"tag":644,"props":5149,"children":5150},{"style":733},[5151],{"type":612,"value":5152},"'User login'",{"type":606,"tag":644,"props":5154,"children":5155},{"style":656},[5156],{"type":612,"value":5083},{"type":606,"tag":644,"props":5158,"children":5159},{"class":646,"line":291},[5160,5164,5168,5172,5176,5180,5184,5188,5192,5196,5201,5205,5210,5214,5218,5222,5227],{"type":606,"tag":644,"props":5161,"children":5162},{"style":656},[5163],{"type":612,"value":5014},{"type":606,"tag":644,"props":5165,"children":5166},{"style":733},[5167],{"type":612,"value":4841},{"type":606,"tag":644,"props":5169,"children":5170},{"style":656},[5171],{"type":612,"value":5023},{"type":606,"tag":644,"props":5173,"children":5174},{"style":717},[5175],{"type":612,"value":2540},{"type":606,"tag":644,"props":5177,"children":5178},{"style":656},[5179],{"type":612,"value":2247},{"type":606,"tag":644,"props":5181,"children":5182},{"style":717},[5183],{"type":612,"value":3635},{"type":606,"tag":644,"props":5185,"children":5186},{"style":656},[5187],{"type":612,"value":2247},{"type":606,"tag":644,"props":5189,"children":5190},{"style":717},[5191],{"type":612,"value":2668},{"type":606,"tag":644,"props":5193,"children":5194},{"style":656},[5195],{"type":612,"value":2247},{"type":606,"tag":644,"props":5197,"children":5198},{"style":717},[5199],{"type":612,"value":5200},"11",{"type":606,"tag":644,"props":5202,"children":5203},{"style":656},[5204],{"type":612,"value":2247},{"type":606,"tag":644,"props":5206,"children":5207},{"style":717},[5208],{"type":612,"value":5209},"0",{"type":606,"tag":644,"props":5211,"children":5212},{"style":656},[5213],{"type":612,"value":5065},{"type":606,"tag":644,"props":5215,"children":5216},{"style":733},[5217],{"type":612,"value":4903},{"type":606,"tag":644,"props":5219,"children":5220},{"style":656},[5221],{"type":612,"value":992},{"type":606,"tag":644,"props":5223,"children":5224},{"style":733},[5225],{"type":612,"value":5226},"'Data backup completed'",{"type":606,"tag":644,"props":5228,"children":5229},{"style":656},[5230],{"type":612,"value":4671},{"type":606,"tag":644,"props":5232,"children":5233},{"class":646,"line":302},[5234],{"type":606,"tag":644,"props":5235,"children":5236},{"style":656},[5237],{"type":612,"value":3140},{"type":606,"tag":644,"props":5239,"children":5240},{"class":646,"line":311},[5241],{"type":606,"tag":644,"props":5242,"children":5243},{"emptyLinePlaceholder":13},[5244],{"type":612,"value":677},{"type":606,"tag":644,"props":5246,"children":5247},{"class":646,"line":320},[5248,5252],{"type":606,"tag":644,"props":5249,"children":5250},{"style":717},[5251],{"type":612,"value":720},{"type":606,"tag":644,"props":5253,"children":5254},{"style":656},[5255],{"type":612,"value":5256},"(format_event_log(events))\n",{"type":606,"tag":1118,"props":5258,"children":5260},{"id":5259},"dynamic-date-formatting",[5261],{"type":612,"value":5262},"Dynamic Date Formatting",{"type":606,"tag":630,"props":5264,"children":5265},{},[5266],{"type":606,"tag":634,"props":5267,"children":5269},{"className":636,"code":5268,"language":638,"meta":8,"style":8},"from datetime import datetime\n\nclass DateFormatter:\n    \"\"\"Flexible date formatter with different styles\"\"\"\n    \n    def __init__(self, dt=None):\n        self.dt = dt or datetime.now()\n    \n    def iso(self):\n        return self.dt.strftime('%Y-%m-%d')\n    \n    def us(self):\n        return self.dt.strftime('%m/%d/%Y')\n    \n    def european(self):\n        return self.dt.strftime('%d/%m/%Y')\n    \n    def readable(self):\n        return self.dt.strftime('%B %d, %Y')\n    \n    def compact(self):\n        return self.dt.strftime('%Y%m%d')\n    \n    def full(self):\n        return self.dt.strftime('%A, %B %d, %Y at %I:%M %p')\n\n# Example usage\nformatter = DateFormatter()\nprint(f\"ISO: {formatter.iso()}\")\nprint(f\"US: {formatter.us()}\")\nprint(f\"European: {formatter.european()}\")\nprint(f\"Readable: {formatter.readable()}\")\nprint(f\"Compact: {formatter.compact()}\")\nprint(f\"Full: {formatter.full()}\")\n",[5270],{"type":606,"tag":621,"props":5271,"children":5272},{"__ignoreMap":8},[5273,5292,5299,5316,5324,5331,5363,5394,5401,5418,5451,5458,5474,5506,5513,5529,5561,5568,5584,5615,5622,5638,5669,5676,5692,5723,5730,5737,5754,5795,5836,5877,5917,5957],{"type":606,"tag":644,"props":5274,"children":5275},{"class":646,"line":12},[5276,5280,5284,5288],{"type":606,"tag":644,"props":5277,"children":5278},{"style":650},[5279],{"type":612,"value":653},{"type":606,"tag":644,"props":5281,"children":5282},{"style":656},[5283],{"type":612,"value":659},{"type":606,"tag":644,"props":5285,"children":5286},{"style":650},[5287],{"type":612,"value":664},{"type":606,"tag":644,"props":5289,"children":5290},{"style":656},[5291],{"type":612,"value":669},{"type":606,"tag":644,"props":5293,"children":5294},{"class":646,"line":27},[5295],{"type":606,"tag":644,"props":5296,"children":5297},{"emptyLinePlaceholder":13},[5298],{"type":612,"value":677},{"type":606,"tag":644,"props":5300,"children":5301},{"class":646,"line":36},[5302,5307,5312],{"type":606,"tag":644,"props":5303,"children":5304},{"style":650},[5305],{"type":612,"value":5306},"class",{"type":606,"tag":644,"props":5308,"children":5309},{"style":3451},[5310],{"type":612,"value":5311}," DateFormatter",{"type":606,"tag":644,"props":5313,"children":5314},{"style":656},[5315],{"type":612,"value":3183},{"type":606,"tag":644,"props":5317,"children":5318},{"class":646,"line":45},[5319],{"type":606,"tag":644,"props":5320,"children":5321},{"style":733},[5322],{"type":612,"value":5323},"    \"\"\"Flexible date formatter with different styles\"\"\"\n",{"type":606,"tag":644,"props":5325,"children":5326},{"class":646,"line":54},[5327],{"type":606,"tag":644,"props":5328,"children":5329},{"style":656},[5330],{"type":612,"value":4024},{"type":606,"tag":644,"props":5332,"children":5333},{"class":646,"line":63},[5334,5339,5344,5349,5353,5358],{"type":606,"tag":644,"props":5335,"children":5336},{"style":650},[5337],{"type":612,"value":5338},"    def",{"type":606,"tag":644,"props":5340,"children":5341},{"style":717},[5342],{"type":612,"value":5343}," __init__",{"type":606,"tag":644,"props":5345,"children":5346},{"style":656},[5347],{"type":612,"value":5348},"(self, dt",{"type":606,"tag":644,"props":5350,"children":5351},{"style":650},[5352],{"type":612,"value":690},{"type":606,"tag":644,"props":5354,"children":5355},{"style":717},[5356],{"type":612,"value":5357},"None",{"type":606,"tag":644,"props":5359,"children":5360},{"style":656},[5361],{"type":612,"value":5362},"):\n",{"type":606,"tag":644,"props":5364,"children":5365},{"class":646,"line":72},[5366,5371,5376,5380,5385,5390],{"type":606,"tag":644,"props":5367,"children":5368},{"style":717},[5369],{"type":612,"value":5370},"        self",{"type":606,"tag":644,"props":5372,"children":5373},{"style":656},[5374],{"type":612,"value":5375},".dt ",{"type":606,"tag":644,"props":5377,"children":5378},{"style":650},[5379],{"type":612,"value":690},{"type":606,"tag":644,"props":5381,"children":5382},{"style":656},[5383],{"type":612,"value":5384}," dt ",{"type":606,"tag":644,"props":5386,"children":5387},{"style":650},[5388],{"type":612,"value":5389},"or",{"type":606,"tag":644,"props":5391,"children":5392},{"style":656},[5393],{"type":612,"value":695},{"type":606,"tag":644,"props":5395,"children":5396},{"class":646,"line":81},[5397],{"type":606,"tag":644,"props":5398,"children":5399},{"style":656},[5400],{"type":612,"value":4024},{"type":606,"tag":644,"props":5402,"children":5403},{"class":646,"line":900},[5404,5408,5413],{"type":606,"tag":644,"props":5405,"children":5406},{"style":650},[5407],{"type":612,"value":5338},{"type":606,"tag":644,"props":5409,"children":5410},{"style":3451},[5411],{"type":612,"value":5412}," iso",{"type":606,"tag":644,"props":5414,"children":5415},{"style":656},[5416],{"type":612,"value":5417},"(self):\n",{"type":606,"tag":644,"props":5419,"children":5420},{"class":646,"line":99},[5421,5425,5430,5435,5439,5443,5447],{"type":606,"tag":644,"props":5422,"children":5423},{"style":650},[5424],{"type":612,"value":4059},{"type":606,"tag":644,"props":5426,"children":5427},{"style":717},[5428],{"type":612,"value":5429}," self",{"type":606,"tag":644,"props":5431,"children":5432},{"style":656},[5433],{"type":612,"value":5434},".dt.strftime(",{"type":606,"tag":644,"props":5436,"children":5437},{"style":733},[5438],{"type":612,"value":751},{"type":606,"tag":644,"props":5440,"children":5441},{"style":717},[5442],{"type":612,"value":756},{"type":606,"tag":644,"props":5444,"children":5445},{"style":733},[5446],{"type":612,"value":931},{"type":606,"tag":644,"props":5448,"children":5449},{"style":656},[5450],{"type":612,"value":781},{"type":606,"tag":644,"props":5452,"children":5453},{"class":646,"line":108},[5454],{"type":606,"tag":644,"props":5455,"children":5456},{"style":656},[5457],{"type":612,"value":4024},{"type":606,"tag":644,"props":5459,"children":5460},{"class":646,"line":117},[5461,5465,5470],{"type":606,"tag":644,"props":5462,"children":5463},{"style":650},[5464],{"type":612,"value":5338},{"type":606,"tag":644,"props":5466,"children":5467},{"style":3451},[5468],{"type":612,"value":5469}," us",{"type":606,"tag":644,"props":5471,"children":5472},{"style":656},[5473],{"type":612,"value":5417},{"type":606,"tag":644,"props":5475,"children":5476},{"class":646,"line":126},[5477,5481,5485,5489,5493,5497,5502],{"type":606,"tag":644,"props":5478,"children":5479},{"style":650},[5480],{"type":612,"value":4059},{"type":606,"tag":644,"props":5482,"children":5483},{"style":717},[5484],{"type":612,"value":5429},{"type":606,"tag":644,"props":5486,"children":5487},{"style":656},[5488],{"type":612,"value":5434},{"type":606,"tag":644,"props":5490,"children":5491},{"style":733},[5492],{"type":612,"value":814},{"type":606,"tag":644,"props":5494,"children":5495},{"style":717},[5496],{"type":612,"value":756},{"type":606,"tag":644,"props":5498,"children":5499},{"style":733},[5500],{"type":612,"value":5501},"/%Y'",{"type":606,"tag":644,"props":5503,"children":5504},{"style":656},[5505],{"type":612,"value":781},{"type":606,"tag":644,"props":5507,"children":5508},{"class":646,"line":135},[5509],{"type":606,"tag":644,"props":5510,"children":5511},{"style":656},[5512],{"type":612,"value":4024},{"type":606,"tag":644,"props":5514,"children":5515},{"class":646,"line":144},[5516,5520,5525],{"type":606,"tag":644,"props":5517,"children":5518},{"style":650},[5519],{"type":612,"value":5338},{"type":606,"tag":644,"props":5521,"children":5522},{"style":3451},[5523],{"type":612,"value":5524}," european",{"type":606,"tag":644,"props":5526,"children":5527},{"style":656},[5528],{"type":612,"value":5417},{"type":606,"tag":644,"props":5530,"children":5531},{"class":646,"line":153},[5532,5536,5540,5544,5548,5552,5557],{"type":606,"tag":644,"props":5533,"children":5534},{"style":650},[5535],{"type":612,"value":4059},{"type":606,"tag":644,"props":5537,"children":5538},{"style":717},[5539],{"type":612,"value":5429},{"type":606,"tag":644,"props":5541,"children":5542},{"style":656},[5543],{"type":612,"value":5434},{"type":606,"tag":644,"props":5545,"children":5546},{"style":733},[5547],{"type":612,"value":931},{"type":606,"tag":644,"props":5549,"children":5550},{"style":717},[5551],{"type":612,"value":756},{"type":606,"tag":644,"props":5553,"children":5554},{"style":733},[5555],{"type":612,"value":5556},"/%m/%Y'",{"type":606,"tag":644,"props":5558,"children":5559},{"style":656},[5560],{"type":612,"value":781},{"type":606,"tag":644,"props":5562,"children":5563},{"class":646,"line":163},[5564],{"type":606,"tag":644,"props":5565,"children":5566},{"style":656},[5567],{"type":612,"value":4024},{"type":606,"tag":644,"props":5569,"children":5570},{"class":646,"line":172},[5571,5575,5580],{"type":606,"tag":644,"props":5572,"children":5573},{"style":650},[5574],{"type":612,"value":5338},{"type":606,"tag":644,"props":5576,"children":5577},{"style":3451},[5578],{"type":612,"value":5579}," readable",{"type":606,"tag":644,"props":5581,"children":5582},{"style":656},[5583],{"type":612,"value":5417},{"type":606,"tag":644,"props":5585,"children":5586},{"class":646,"line":181},[5587,5591,5595,5599,5603,5607,5611],{"type":606,"tag":644,"props":5588,"children":5589},{"style":650},[5590],{"type":612,"value":4059},{"type":606,"tag":644,"props":5592,"children":5593},{"style":717},[5594],{"type":612,"value":5429},{"type":606,"tag":644,"props":5596,"children":5597},{"style":656},[5598],{"type":612,"value":5434},{"type":606,"tag":644,"props":5600,"children":5601},{"style":733},[5602],{"type":612,"value":872},{"type":606,"tag":644,"props":5604,"children":5605},{"style":717},[5606],{"type":612,"value":756},{"type":606,"tag":644,"props":5608,"children":5609},{"style":733},[5610],{"type":612,"value":3285},{"type":606,"tag":644,"props":5612,"children":5613},{"style":656},[5614],{"type":612,"value":781},{"type":606,"tag":644,"props":5616,"children":5617},{"class":646,"line":190},[5618],{"type":606,"tag":644,"props":5619,"children":5620},{"style":656},[5621],{"type":612,"value":4024},{"type":606,"tag":644,"props":5623,"children":5624},{"class":646,"line":199},[5625,5629,5634],{"type":606,"tag":644,"props":5626,"children":5627},{"style":650},[5628],{"type":612,"value":5338},{"type":606,"tag":644,"props":5630,"children":5631},{"style":3451},[5632],{"type":612,"value":5633}," compact",{"type":606,"tag":644,"props":5635,"children":5636},{"style":656},[5637],{"type":612,"value":5417},{"type":606,"tag":644,"props":5639,"children":5640},{"class":646,"line":208},[5641,5645,5649,5653,5657,5661,5665],{"type":606,"tag":644,"props":5642,"children":5643},{"style":650},[5644],{"type":612,"value":4059},{"type":606,"tag":644,"props":5646,"children":5647},{"style":717},[5648],{"type":612,"value":5429},{"type":606,"tag":644,"props":5650,"children":5651},{"style":656},[5652],{"type":612,"value":5434},{"type":606,"tag":644,"props":5654,"children":5655},{"style":733},[5656],{"type":612,"value":2382},{"type":606,"tag":644,"props":5658,"children":5659},{"style":717},[5660],{"type":612,"value":756},{"type":606,"tag":644,"props":5662,"children":5663},{"style":733},[5664],{"type":612,"value":931},{"type":606,"tag":644,"props":5666,"children":5667},{"style":656},[5668],{"type":612,"value":781},{"type":606,"tag":644,"props":5670,"children":5671},{"class":646,"line":217},[5672],{"type":606,"tag":644,"props":5673,"children":5674},{"style":656},[5675],{"type":612,"value":4024},{"type":606,"tag":644,"props":5677,"children":5678},{"class":646,"line":227},[5679,5683,5688],{"type":606,"tag":644,"props":5680,"children":5681},{"style":650},[5682],{"type":612,"value":5338},{"type":606,"tag":644,"props":5684,"children":5685},{"style":3451},[5686],{"type":612,"value":5687}," full",{"type":606,"tag":644,"props":5689,"children":5690},{"style":656},[5691],{"type":612,"value":5417},{"type":606,"tag":644,"props":5693,"children":5694},{"class":646,"line":236},[5695,5699,5703,5707,5711,5715,5719],{"type":606,"tag":644,"props":5696,"children":5697},{"style":650},[5698],{"type":612,"value":4059},{"type":606,"tag":644,"props":5700,"children":5701},{"style":717},[5702],{"type":612,"value":5429},{"type":606,"tag":644,"props":5704,"children":5705},{"style":656},[5706],{"type":612,"value":5434},{"type":606,"tag":644,"props":5708,"children":5709},{"style":733},[5710],{"type":612,"value":2310},{"type":606,"tag":644,"props":5712,"children":5713},{"style":717},[5714],{"type":612,"value":756},{"type":606,"tag":644,"props":5716,"children":5717},{"style":733},[5718],{"type":612,"value":881},{"type":606,"tag":644,"props":5720,"children":5721},{"style":656},[5722],{"type":612,"value":781},{"type":606,"tag":644,"props":5724,"children":5725},{"class":646,"line":245},[5726],{"type":606,"tag":644,"props":5727,"children":5728},{"emptyLinePlaceholder":13},[5729],{"type":612,"value":677},{"type":606,"tag":644,"props":5731,"children":5732},{"class":646,"line":254},[5733],{"type":606,"tag":644,"props":5734,"children":5735},{"style":708},[5736],{"type":612,"value":3718},{"type":606,"tag":644,"props":5738,"children":5739},{"class":646,"line":263},[5740,5745,5749],{"type":606,"tag":644,"props":5741,"children":5742},{"style":656},[5743],{"type":612,"value":5744},"formatter ",{"type":606,"tag":644,"props":5746,"children":5747},{"style":650},[5748],{"type":612,"value":690},{"type":606,"tag":644,"props":5750,"children":5751},{"style":656},[5752],{"type":612,"value":5753}," DateFormatter()\n",{"type":606,"tag":644,"props":5755,"children":5756},{"class":646,"line":272},[5757,5761,5765,5769,5774,5778,5783,5787,5791],{"type":606,"tag":644,"props":5758,"children":5759},{"style":717},[5760],{"type":612,"value":720},{"type":606,"tag":644,"props":5762,"children":5763},{"style":656},[5764],{"type":612,"value":725},{"type":606,"tag":644,"props":5766,"children":5767},{"style":650},[5768],{"type":612,"value":730},{"type":606,"tag":644,"props":5770,"children":5771},{"style":733},[5772],{"type":612,"value":5773},"\"ISO: ",{"type":606,"tag":644,"props":5775,"children":5776},{"style":717},[5777],{"type":612,"value":741},{"type":606,"tag":644,"props":5779,"children":5780},{"style":656},[5781],{"type":612,"value":5782},"formatter.iso()",{"type":606,"tag":644,"props":5784,"children":5785},{"style":717},[5786],{"type":612,"value":771},{"type":606,"tag":644,"props":5788,"children":5789},{"style":733},[5790],{"type":612,"value":776},{"type":606,"tag":644,"props":5792,"children":5793},{"style":656},[5794],{"type":612,"value":781},{"type":606,"tag":644,"props":5796,"children":5797},{"class":646,"line":281},[5798,5802,5806,5810,5815,5819,5824,5828,5832],{"type":606,"tag":644,"props":5799,"children":5800},{"style":717},[5801],{"type":612,"value":720},{"type":606,"tag":644,"props":5803,"children":5804},{"style":656},[5805],{"type":612,"value":725},{"type":606,"tag":644,"props":5807,"children":5808},{"style":650},[5809],{"type":612,"value":730},{"type":606,"tag":644,"props":5811,"children":5812},{"style":733},[5813],{"type":612,"value":5814},"\"US: ",{"type":606,"tag":644,"props":5816,"children":5817},{"style":717},[5818],{"type":612,"value":741},{"type":606,"tag":644,"props":5820,"children":5821},{"style":656},[5822],{"type":612,"value":5823},"formatter.us()",{"type":606,"tag":644,"props":5825,"children":5826},{"style":717},[5827],{"type":612,"value":771},{"type":606,"tag":644,"props":5829,"children":5830},{"style":733},[5831],{"type":612,"value":776},{"type":606,"tag":644,"props":5833,"children":5834},{"style":656},[5835],{"type":612,"value":781},{"type":606,"tag":644,"props":5837,"children":5838},{"class":646,"line":291},[5839,5843,5847,5851,5856,5860,5865,5869,5873],{"type":606,"tag":644,"props":5840,"children":5841},{"style":717},[5842],{"type":612,"value":720},{"type":606,"tag":644,"props":5844,"children":5845},{"style":656},[5846],{"type":612,"value":725},{"type":606,"tag":644,"props":5848,"children":5849},{"style":650},[5850],{"type":612,"value":730},{"type":606,"tag":644,"props":5852,"children":5853},{"style":733},[5854],{"type":612,"value":5855},"\"European: ",{"type":606,"tag":644,"props":5857,"children":5858},{"style":717},[5859],{"type":612,"value":741},{"type":606,"tag":644,"props":5861,"children":5862},{"style":656},[5863],{"type":612,"value":5864},"formatter.european()",{"type":606,"tag":644,"props":5866,"children":5867},{"style":717},[5868],{"type":612,"value":771},{"type":606,"tag":644,"props":5870,"children":5871},{"style":733},[5872],{"type":612,"value":776},{"type":606,"tag":644,"props":5874,"children":5875},{"style":656},[5876],{"type":612,"value":781},{"type":606,"tag":644,"props":5878,"children":5879},{"class":646,"line":302},[5880,5884,5888,5892,5896,5900,5905,5909,5913],{"type":606,"tag":644,"props":5881,"children":5882},{"style":717},[5883],{"type":612,"value":720},{"type":606,"tag":644,"props":5885,"children":5886},{"style":656},[5887],{"type":612,"value":725},{"type":606,"tag":644,"props":5889,"children":5890},{"style":650},[5891],{"type":612,"value":730},{"type":606,"tag":644,"props":5893,"children":5894},{"style":733},[5895],{"type":612,"value":859},{"type":606,"tag":644,"props":5897,"children":5898},{"style":717},[5899],{"type":612,"value":741},{"type":606,"tag":644,"props":5901,"children":5902},{"style":656},[5903],{"type":612,"value":5904},"formatter.readable()",{"type":606,"tag":644,"props":5906,"children":5907},{"style":717},[5908],{"type":612,"value":771},{"type":606,"tag":644,"props":5910,"children":5911},{"style":733},[5912],{"type":612,"value":776},{"type":606,"tag":644,"props":5914,"children":5915},{"style":656},[5916],{"type":612,"value":781},{"type":606,"tag":644,"props":5918,"children":5919},{"class":646,"line":311},[5920,5924,5928,5932,5936,5940,5945,5949,5953],{"type":606,"tag":644,"props":5921,"children":5922},{"style":717},[5923],{"type":612,"value":720},{"type":606,"tag":644,"props":5925,"children":5926},{"style":656},[5927],{"type":612,"value":725},{"type":606,"tag":644,"props":5929,"children":5930},{"style":650},[5931],{"type":612,"value":730},{"type":606,"tag":644,"props":5933,"children":5934},{"style":733},[5935],{"type":612,"value":2369},{"type":606,"tag":644,"props":5937,"children":5938},{"style":717},[5939],{"type":612,"value":741},{"type":606,"tag":644,"props":5941,"children":5942},{"style":656},[5943],{"type":612,"value":5944},"formatter.compact()",{"type":606,"tag":644,"props":5946,"children":5947},{"style":717},[5948],{"type":612,"value":771},{"type":606,"tag":644,"props":5950,"children":5951},{"style":733},[5952],{"type":612,"value":776},{"type":606,"tag":644,"props":5954,"children":5955},{"style":656},[5956],{"type":612,"value":781},{"type":606,"tag":644,"props":5958,"children":5959},{"class":646,"line":320},[5960,5964,5968,5972,5977,5981,5986,5990,5994],{"type":606,"tag":644,"props":5961,"children":5962},{"style":717},[5963],{"type":612,"value":720},{"type":606,"tag":644,"props":5965,"children":5966},{"style":656},[5967],{"type":612,"value":725},{"type":606,"tag":644,"props":5969,"children":5970},{"style":650},[5971],{"type":612,"value":730},{"type":606,"tag":644,"props":5973,"children":5974},{"style":733},[5975],{"type":612,"value":5976},"\"Full: ",{"type":606,"tag":644,"props":5978,"children":5979},{"style":717},[5980],{"type":612,"value":741},{"type":606,"tag":644,"props":5982,"children":5983},{"style":656},[5984],{"type":612,"value":5985},"formatter.full()",{"type":606,"tag":644,"props":5987,"children":5988},{"style":717},[5989],{"type":612,"value":771},{"type":606,"tag":644,"props":5991,"children":5992},{"style":733},[5993],{"type":612,"value":776},{"type":606,"tag":644,"props":5995,"children":5996},{"style":656},[5997],{"type":612,"value":781},{"type":606,"tag":964,"props":5999,"children":6001},{"id":6000},"key-takeaways",[6002],{"type":612,"value":6003},"🎯 Key Takeaways",{"type":606,"tag":976,"props":6005,"children":6009},{"emoji":6006,"title":6007,"type":6008},"📚","Date Formatting Essentials","success",[6010,6018,6043,6051,6094,6102,6125],{"type":606,"tag":615,"props":6011,"children":6012},{},[6013],{"type":606,"tag":986,"props":6014,"children":6015},{},[6016],{"type":612,"value":6017},"Core Method:",{"type":606,"tag":6019,"props":6020,"children":6021},"ul",{},[6022,6033,6038],{"type":606,"tag":6023,"props":6024,"children":6025},"li",{},[6026,6031],{"type":606,"tag":621,"props":6027,"children":6029},{"className":6028},[],[6030],{"type":612,"value":626},{"type":612,"value":6032},": Format datetime to string",{"type":606,"tag":6023,"props":6034,"children":6035},{},[6036],{"type":612,"value":6037},"Uses % format codes",{"type":606,"tag":6023,"props":6039,"children":6040},{},[6041],{"type":612,"value":6042},"Highly customizable output",{"type":606,"tag":615,"props":6044,"children":6045},{},[6046],{"type":606,"tag":986,"props":6047,"children":6048},{},[6049],{"type":612,"value":6050},"Common Patterns:",{"type":606,"tag":6019,"props":6052,"children":6053},{},[6054,6064,6074,6084],{"type":606,"tag":6023,"props":6055,"children":6056},{},[6057,6059],{"type":612,"value":6058},"ISO: ",{"type":606,"tag":621,"props":6060,"children":6062},{"className":6061},[],[6063],{"type":612,"value":1006},{"type":606,"tag":6023,"props":6065,"children":6066},{},[6067,6069],{"type":612,"value":6068},"US: ",{"type":606,"tag":621,"props":6070,"children":6072},{"className":6071},[],[6073],{"type":612,"value":1028},{"type":606,"tag":6023,"props":6075,"children":6076},{},[6077,6079],{"type":612,"value":6078},"Readable: ",{"type":606,"tag":621,"props":6080,"children":6082},{"className":6081},[],[6083],{"type":612,"value":1072},{"type":606,"tag":6023,"props":6085,"children":6086},{},[6087,6089],{"type":612,"value":6088},"Filename-safe: ",{"type":606,"tag":621,"props":6090,"children":6092},{"className":6091},[],[6093],{"type":612,"value":1116},{"type":606,"tag":615,"props":6095,"children":6096},{},[6097],{"type":606,"tag":986,"props":6098,"children":6099},{},[6100],{"type":612,"value":6101},"Best Practices:",{"type":606,"tag":6019,"props":6103,"children":6104},{},[6105,6110,6115,6120],{"type":606,"tag":6023,"props":6106,"children":6107},{},[6108],{"type":612,"value":6109},"Use ISO format for data storage",{"type":606,"tag":6023,"props":6111,"children":6112},{},[6113],{"type":612,"value":6114},"Use readable formats for users",{"type":606,"tag":6023,"props":6116,"children":6117},{},[6118],{"type":612,"value":6119},"Consider locale for internationalization",{"type":606,"tag":6023,"props":6121,"children":6122},{},[6123],{"type":612,"value":6124},"Keep formats consistent within apps",{"type":606,"tag":615,"props":6126,"children":6127},{},[6128,6133],{"type":606,"tag":986,"props":6129,"children":6130},{},[6131],{"type":612,"value":6132},"Remember:",{"type":612,"value":6134}," Choose formats based on your audience and use case!",{"type":606,"tag":964,"props":6136,"children":6138},{"id":6137},"whats-next",[6139],{"type":612,"value":6140},"🚀 What's Next?",{"type":606,"tag":615,"props":6142,"children":6143},{},[6144],{"type":612,"value":6145},"Now that you can format dates beautifully, learn how to calculate differences between dates and times.",{"type":606,"tag":615,"props":6147,"children":6148},{},[6149,6154,6155],{"type":606,"tag":986,"props":6150,"children":6151},{},[6152],{"type":612,"value":6153},"Continue to",{"type":612,"value":992},{"type":606,"tag":6156,"props":6157,"children":6158},"a",{"href":316},[6159],{"type":612,"value":317},{"type":606,"tag":6161,"props":6162,"children":6163},"style",{},[6164],{"type":612,"value":6165},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}html.app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}",{"title":8,"searchDepth":36,"depth":36,"links":6167},[6168,6173,6177,6181,6186,6187],{"id":966,"depth":27,"text":969,"children":6169},[6170,6171,6172],{"id":1120,"depth":36,"text":1123},{"id":1636,"depth":36,"text":1639},{"id":2081,"depth":36,"text":2084},{"id":2467,"depth":27,"text":2470,"children":6174},[6175,6176],{"id":2478,"depth":36,"text":2481},{"id":2774,"depth":36,"text":2777},{"id":3012,"depth":27,"text":3015,"children":6178},[6179,6180],{"id":3023,"depth":36,"text":3026},{"id":3401,"depth":36,"text":3404},{"id":3899,"depth":27,"text":3902,"children":6182},[6183,6184,6185],{"id":3910,"depth":36,"text":3913},{"id":4468,"depth":36,"text":4471},{"id":5259,"depth":36,"text":5262},{"id":6000,"depth":27,"text":6003},{"id":6137,"depth":27,"text":6140},1782373758352]