Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^7: I want to know the current week number of the current month

by ww (Archbishop)
on Oct 13, 2017 at 13:56 UTC ( #1201315=note: print w/replies, xml ) Need Help??


in reply to Re^6: I want to know the current week number of the current month
in thread I want to know the current week number of the current month

Quibble: your definition of "weeks of months" is one legitimate possibility.

BUT my US-ian orientation is accustomed to the notion that "weeks" begin either with a Sunday or Monday, NOT with day one of a month. And for OP's purposes (inferred, perhaps incorrectly) the desired weeks may actually be "work weeks," Mon-Fri.

Re work-week day 0, as Wikipedia tells us (at https://en.wikipedia.org/wiki/ISO_week_date ) "in some Muslim countries, the normal work week begins on Saturday, while in Israel it begins on Sunday."

CPAN finds a number of modules (sorry: not checked as I'm short of time!) using "cpan iso week" as the search string. These include Date::ISO, Date::ICal, Date::ISO8601 and DateTime::Format::ISO8061. One or more may be helpful.


++$anecdote ne $data

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1201315]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2020-10-01 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (176 votes). Check out past polls.

    Notices?