Skip to main content

NOTICE: On Friday Nov 6, Workspaces will be temporarily unavailable for maintenance.

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

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

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

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • 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
      • • Vibe Coding
  • 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.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

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

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord