Python Forum
Naming the file as time and date.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Naming the file as time and date.
#2
Have a look at the facilities provided by the datetime module: https://docs.python.org/3/library/datetime.html, specifically the datetime class and the following section: https://docs.python.org/3/library/datetime.html.

If you're having problems and getting errors, you need to show all the relevant code and the full traceback.
Reply


Messages In This Thread
Naming the file as time and date. - by BettyTurnips - Jan-14-2021, 11:53 PM
RE: Naming the file as time and date. - by ndc85430 - Jan-15-2021, 06:34 AM
RE: Naming the file as time and date. - by buran - Jan-15-2021, 07:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare current date on calendar with date format file name Fioravanti 1 252 Mar-26-2024, 08:23 AM
Last Post: Pedroski55
  Date Time Series Help...Please spra8560 2 382 Feb-01-2024, 01:38 PM
Last Post: spra8560
  Python date format changes to date & time 1418 4 624 Jan-20-2024, 04:45 AM
Last Post: 1418
  Downloading time zone aware files, getting wrong files(by date))s tester_V 9 1,059 Jul-23-2023, 08:32 AM
Last Post: deanhystad
  Formatting a date time string read from a csv file DosAtPython 5 1,303 Jun-19-2023, 02:12 PM
Last Post: DosAtPython
  naming entities(city abbreviations) tirumalaramakrishna 1 1,252 May-06-2022, 11:22 AM
Last Post: jefsummers
  Wait til a date and time KatManDEW 2 1,439 Mar-11-2022, 08:05 PM
Last Post: KatManDEW
  Date format and past date check function Turtle 5 4,287 Oct-22-2021, 09:45 PM
Last Post: deanhystad
  Python Style and Naming Variables rsherry8 3 2,226 Jun-07-2021, 09:30 PM
Last Post: deanhystad
  Check last time file was accessed Pavel_47 4 2,844 Jun-01-2021, 05:47 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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