Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python DateTime is broken
#6
(Jan-02-2020, 03:09 AM)ichabod801 Wrote: I don't think you understand. You can use strftime to make a text representation of the date in whatever format you want. But the datetime object (datetime.datetime(2019, 11, 10)), must be specified in year, month, day order, or you must clarify with keyword arguments what you want (datetime.datetime(year = 2019, day = 11, month = 10)).

Why is it in year month day order? TIL Python dates are in the same order as the date in Japan.

In my country, it's either year day month or day month year.
Reply


Messages In This Thread
Python DateTime is broken - by 10OctNotOct10a1 - Dec-31-2019, 06:13 PM
RE: Python DateTime is broken - by ndc85430 - Dec-31-2019, 06:22 PM
RE: Python DateTime is broken - by 10OctNotOct10a1 - Jan-02-2020, 02:31 AM
RE: Python DateTime is broken - by ziliboba - Jan-01-2020, 12:08 AM
RE: Python DateTime is broken - by ichabod801 - Jan-02-2020, 03:09 AM
RE: Python DateTime is broken - by 10OctNotOct10a1 - Jan-02-2020, 11:07 PM
RE: Python DateTime is broken - by ichabod801 - Jan-02-2020, 11:13 PM
RE: Python DateTime is broken - by micseydel - Jan-02-2020, 11:50 PM
RE: Python DateTime is broken - by snippsat - Jan-03-2020, 07:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is copying and pasting a block now broken? WagmoreBarkless 2 1,441 May-05-2022, 05:01 AM
Last Post: WagmoreBarkless
  Why is copying and pasting a block now broken? WagmoreBarkless 1 1,264 May-04-2022, 11:40 PM
Last Post: Larz60+
  BrokenPipeError: [Errno 32] Broken pipe throwaway34 6 9,514 May-06-2021, 05:39 AM
Last Post: throwaway34
  Python broken if moved to a different folder ecastrotns 3 2,497 Oct-26-2020, 10:53 PM
Last Post: ecastrotns
  STT: recognition connection failed: [Errno 32] Broken pipe GrahamBerends 0 5,119 Jul-18-2020, 11:00 PM
Last Post: GrahamBerends
  Broken interpreter? fcktheworld587 1 2,302 Dec-26-2019, 08:29 PM
Last Post: snippsat
  TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str' findbikash 2 9,674 Sep-18-2019, 08:32 AM
Last Post: buran
  Arduino Read Update Datetime from Python jambuna35 0 2,532 Feb-03-2019, 05:13 PM
Last Post: jambuna35
  String being broken up into single characters ammorgan 1 2,380 Dec-31-2018, 07:06 AM
Last Post: Gribouillis
  Speech (audio file, wav) to Text - Broken pipe Shobha 1 3,813 Nov-27-2018, 12:41 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020