1.0.4 • Published 2 years ago
milestone-calculator v1.0.4
milestone-calculator
About
This package claculates the milestone days of the given date.
Main function in index.js
milestoneDays(date)
totalHoursSince(date)
Acceptable date format
`YYYY-MM-DD`
Output
milestoneDays(date) {
....
....
returns {
tenTousanth: string,
tweentyThousanth: sring
}
}
example:
input => date "1947-08-14"
output: =>
{"tenTousanth":"29-11-1974, Sun","tweentyThousanth":"16-4-2002, Thu"}
totalHoursSince(date){
....
....
returns string
}
example:
input => date "1947-08-14"
output: =>
"<xxx> Hours"