Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tbrowder/datetime-math-more
https://github.com/tbrowder/datetime-math-more
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tbrowder/datetime-math-more
- Owner: tbrowder
- License: artistic-2.0
- Created: 2016-11-03T11:55:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-06T21:32:22.000Z (over 7 years ago)
- Last Synced: 2024-12-09T19:50:10.015Z (about 1 month ago)
- Language: Perl 6
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
# DateTime::Math::More [![Build Status](https://travis-ci.org/tbrowder/DateTime-Math-More-Perl6.svg?branch=master)](https://travis-ci.org/tbrowder/DateTime-Math-More-Perl6)
Provides some additional DateTime math functions:
nth-weekday-of-month(
UInt :$nth!, # integer, e.g., 1 for the first weekday W in the month
Str :$weekday!, # first two letters of the day of the week of interest
# (case insensitive)
:$year = Date.today.year, # starting year of interest (yyyy)
:$mon = Date.today.month, # starting month of interest (first three letters or
# number 1..12; case insensitive)
UInt :$num = 12, # number of dates to list
--> List) # returns list of Date objectsnth-weekday-before-date(
UInt :$nth!, # integer, e.g., 1 for the first weekday W before a date
Str :$weekday!, # first two letters of the day of the week of interest
Date :$date! # (case insensitive)
--> Date)