Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
yohannesk
2mo ago
0 comments
Save
Share
And we also need localization. Each country can have their own holidays
0 comments
5 comments · 2 top-level
default
top
newest
oldest
rolandog
2mo ago
· 2 in thread
And we need groups of locales for teams that are split across multiple locations; e.g.:
new_date = add_workdays( workdays=1.5, start=datetime.now(), regions=["es", "mx", "nl", "us"], )
mewpmewp2
2mo ago
Hopefully "es" will have Siesta support too.
1 more reply
zdc1
2mo ago
Might be better to calculate them separately for each locale and then tie-break with your own approach (min/max/avg/median/etc.)
wongarsu
2mo ago
· 1 in thread
Don't forget about regional holidays, which might follow arbitrary borders that don't match any of the official subdivisions of the country. Or may even depend on the chosen faith of the worker
reaperducer
2mo ago
Pulaski day in Illinois. Or Reds Opening Day in Cincinnati.
j
/
k
navigate · click thread line to collapse