Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

date

Parsing date/time string with timezone abbreviated name in Python?

August 20, 2022 by Magenaut

I’m trying to parse timestamp strings like "Sat, 11/01/09 8:00PM EST" in Python, but I’m having trouble finding a solution that will handle the abbreviated timezone.

Categories Python, Q&A Tags date, python, timezone Leave a comment

Can pandas automatically read dates from a CSV file?

August 20, 2022 by Magenaut

Today I was positively surprised by the fact that while reading data from a data file (for example) pandas is able to recognize types of values:

Categories Python, Q&A Tags dataframe, date, pandas, python, types Leave a comment

How do I get a value of datetime.today() in Python that is “timezone aware”?

August 20, 2022 by Magenaut

I am trying to subtract one date value from the value of datetime.datetime.today() to calculate how long ago something was. But it complains:

Categories Python, Q&A Tags date, datetime, python, timezone Leave a comment

Python date string to date object

August 20, 2022 by Magenaut

How do I convert a string to a date object in python?

Categories Python, Q&A Tags date, python Leave a comment

Get month name from number

August 19, 2022 by Magenaut

How can I get the month name from the month number?

Categories Python, Q&A Tags date, datetime, python Leave a comment

Locale date formatting in Python

August 19, 2022 by Magenaut

How do I get datetime.datetime.now() printed out in the native language?

Categories Python, Q&A Tags date, locale, python Leave a comment

Difference between two dates in Python

August 19, 2022 by Magenaut

I have two different dates and I want to know the difference in days between them. The format of the date is YYYY-MM-DD.

Categories Python, Q&A Tags date, python Leave a comment

How can I parse a time string containing milliseconds in it with python?

August 19, 2022 by Magenaut

I am able to parse strings containing date/time with time.strptime

Categories Python, Q&A Tags date, datetime-parsing, python, time Leave a comment

How do I validate a date string format in python?

August 18, 2022 by Magenaut

I have a python method which accepts a date input as a string.

Categories Python, Q&A Tags date, python Leave a comment

How to convert a given ordinal number (from Excel) to a date

August 18, 2022 by Magenaut

I have a Value 38142 I need to convert it into date format using python.
if use this number in excel and do a right click and format cell at that time the value will be converted to 04/06/2004 and I need the same result using python. How can I achieve this

Categories Python, Q&A Tags date, excel, python, python-2.7 Leave a comment
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page13 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress