🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Gary Lehman
    Gary Lehman
    2,387 Points

    My naive timezon didn't throw an error like the instructor's; this whole date time module feels outdated.

    Posted March 12, 2023 6:42am by Gary Lehman
    Gary Lehman
    2,387 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    1 Answer

  • Farah Hassan
    Farah Hassan
    2,519 Points

    I'm not clear on when I need to write datetime.what_I_want() vs datetime.datetime.what_I_want(). Is there a rule?

    Posted October 1, 2020 5:46pm by Farah Hassan
    Farah Hassan
    2,519 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    1 Answer

  • spencer tintorri
    spencer tintorri
    6,184 Points

    For mumbai, is there an advantage to using hours=5, minutes=30 instead of just using hours=5.5 ?

    Posted August 17, 2020 4:12pm by spencer tintorri
    spencer tintorri
    6,184 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    1 Answer

  • Sohail Mirza
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Sohail Mirza
    Python Web Development Techdegree Student 5,158 Points

    why am i getting 12 noon

    Posted November 4, 2019 3:58pm by Sohail Mirza
    .a{fill-rule:evenodd;}techdegree
    Sohail Mirza
    Python Web Development Techdegree Student 5,158 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    4 Answers

  • Ewerton Luna
    seal-mask
    .a{fill-rule:evenodd;}techdegree seal-36
    Ewerton Luna
    Full Stack JavaScript Techdegree Graduate 24,031 Points

    Not getting ValueError on "naive". What's different on newer versions of python?

    Posted January 22, 2019 12:50pm by Ewerton Luna
    .a{fill-rule:evenodd;}techdegree seal-36
    Ewerton Luna
    Full Stack JavaScript Techdegree Graduate 24,031 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    1 Answer

  • Andrew Mlamba
    Andrew Mlamba
    15,642 Points

    I am following along in this video, but am not getting the Value Error at about 02:35

    Posted January 10, 2017 12:16pm by Andrew Mlamba
    Andrew Mlamba
    15,642 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    1 Answer

  • vikas pal
    vikas pal
    11,563 Points

    please tell me all about timezone

    Posted September 14, 2016 11:52am by vikas pal
    vikas pal
    11,563 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    0 Answers

  • vikas pal
    vikas pal
    11,563 Points

    please tell me what is timezones

    Posted September 14, 2016 9:35am by vikas pal
    vikas pal
    11,563 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    0 Answers

  • sidni ahmed
    sidni ahmed
    3,329 Points

    timezone differences

    Posted January 19, 2016 12:43am by sidni ahmed
    sidni ahmed
    3,329 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    2 Answers

  • Alex Rodriguez
    seal-mask
    .a{fill-rule:evenodd;}techdegree
    Alex Rodriguez
    Front End Web Development Techdegree Student 20,810 Points

    Not getting timezone

    Posted January 14, 2016 6:54pm by Alex Rodriguez
    .a{fill-rule:evenodd;}techdegree
    Alex Rodriguez
    Front End Web Development Techdegree Student 20,810 Points
    • Python
    • Dates and Times in Python
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    1 Answer

  • cassac
    cassac
    9,628 Points

    datetime.timezone python 2.7 attribute error

    Posted February 16, 2015 9:21am by cassac
    cassac
    9,628 Points
    • Python
    • Dates and Times in Python (2014)
    • Where on Earth do Timezones Make Sense?
    • Introduction to Timezones

    2 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.