Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
EventGen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chaotikum
EventGen
Commits
60756cd1
Commit
60756cd1
authored
5 months ago
by
Lukas Ruge
Browse files
Options
Downloads
Patches
Plain Diff
update 2025b
parent
fb8eb83c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
eventgenutils.py
+1
-1
1 addition, 1 deletion
eventgenutils.py
main.py
+2
-2
2 additions, 2 deletions
main.py
with
3 additions
and
3 deletions
eventgenutils.py
+
1
−
1
View file @
60756cd1
...
...
@@ -98,7 +98,7 @@ def is_third_monday_of_month_and_uneven_month_before_june_or_before_september(_d
def
first_saturday_after_may_10th
(
_date_candidate
):
_year
=
_date_candidate
.
year
_start_string
=
str
(
_year
)
+
"
-05-1
0
"
_start_string
=
str
(
_year
)
+
"
-05-1
1
"
_start
=
datetime
.
datetime
.
strptime
(
_start_string
,
date_format
)
while
_start
.
month
==
5
:
if
_start
.
weekday
()
==
SAT
:
...
...
This diff is collapsed.
Click to expand it.
main.py
+
2
−
2
View file @
60756cd1
...
...
@@ -29,7 +29,7 @@ NOOK = True
# zweiter freitag im November (und der darauf folgende Samstag)
# FÜNF MINUTEN TERMINE
# Zweiter Mittwoch im
jan
uar, April, september und dezember
# Zweiter Mittwoch im
Febr
uar, April, september und dezember
FUENF_MIN_TERMINE
=
True
SOMMERFEST
=
True
...
...
@@ -121,7 +121,7 @@ def is_nook(_date_candidate):
def
is_fuenf_min
(
_date_candidate
):
if
utils
.
is_
jan
uary
(
_date_candidate
)
or
utils
.
is_april
(
_date_candidate
)
or
utils
.
is_september
(
if
utils
.
is_
febr
uary
(
_date_candidate
)
or
utils
.
is_april
(
_date_candidate
)
or
utils
.
is_september
(
_date_candidate
)
or
utils
.
is_december
(
_date_candidate
):
if
utils
.
is_nth_wednesday_of_month
(
_date_candidate
,
2
):
return
True
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment