Python Forum
How to generate calendar with 2 formats in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to generate calendar with 2 formats in python
#1
Hello, how to generate in python a calendar list between 2018 and 2022 with 2 formats:

Day of the week, Date Month Year Time (hours: minutes: seconds) - Year-Month-Date Time (hours: minutes: seconds)

Note:
Note:
Calendar: Calendar respecting leap years
Dates: Peer dates only
schedule: Randomly generated schedules

Example:

Quote:Tue, 02 Jan 2018 00:59:23 - 2018-01-02 00:59:23
Thu, 04 Jan 2018 10:24:52 - 2018-01-04 10:24:52
Sat, 06 Jan 2018 04:11:09 - 2018-01-06 04:11:09
Mon, 08 Jan 2018 16:12:40 - 2018-01-08 16:12:40
Wed, 10 Jan 2018 10:08:15 - 2018-01-10 10:08:15
Fri, 12 Jan 2018 07:10:09 - 2018-01-12 07:10:09
Sun, 14 Jan 2018 11:50:10 - 2018-01-14 11:50:10
Tue, 16 Jan 2018 02:29:22 - 2018-01-16 02:29:22
Thu, 18 Jan 2018 19:07:20 - 2018-01-18 19:07:20
Sat, 20 Jan 2018 08:50:13 - 2018-01-20 08:50:13
Mon, 22 Jan 2018 02:40:02 - 2018-01-22 02:40:02



and so on, until the year 2022 ...
Reply
#2
what have you tried so far?
see python calendar: https://docs.python.org/3.7/library/calendar.html
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Excel from SAP - dealing with formats and VBA MasterOfDestr 7 448 Feb-25-2024, 12:23 PM
Last Post: Pedroski55
  Help with Python Script to generate SVG Dot Matrix Pattern for LED Light Guide iamrickm 2 708 Aug-25-2023, 06:07 PM
Last Post: iamrickm
  Generate Python variables dynamically Pedroski55 5 2,802 Mar-04-2022, 10:13 PM
Last Post: deanhystad
  Generate RPM package from a Python + Kivy application for an "offline" installation pruvosim 2 2,167 Jun-04-2020, 12:16 PM
Last Post: pruvosim
  [split] NameError: name 'formats' is not defined shobhu123 1 3,920 May-24-2020, 06:29 PM
Last Post: Skaperen
  Need help working with two excel file with different formats mikey3580 1 1,553 Apr-22-2020, 07:11 AM
Last Post: DPaul
  generate UML design from python code Phaze90 2 2,427 Apr-13-2020, 11:36 AM
Last Post: Phaze90
  Run School Bell by Google Calendar darkmx6 1 1,972 Oct-29-2019, 02:12 AM
Last Post: Larz60+
  How can one generate triangular and sawtooth waves in python? xBlackHeartx 6 13,440 Sep-25-2019, 11:52 PM
Last Post: metulburr
  Generate a report in Python qureshi 2 3,569 Aug-24-2019, 04:50 AM
Last Post: ndc85430

Forum Jump:

User Panel Messages

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