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