1.2.2 • Published 3 years ago
@lakshmanshankar/days-till v1.2.2
Days-till
- Day till Class is used to calculate the number of Days remain till the given date
- Given the Date you want to check in the Constructor of this Class.
- Has over Thirty usefull functions
- And we keep adding new Functions to this Class...
- No dependencies (-)
Installation
Using npm:
npm install --save @Lakshmanshankar/days-till
Using Yarn
yarn add @Lakshmanshankar/days-till
Demo
var daystill=require("./dist/daystill")
//Date You want to calculate the Days
let DaysTill=new DaysTill(Date,Month,Year)
//example let DaysTill=new DaysTill(12,12,2032)
let Count=DaysTill.CountDays()
console.log(Count)
//Output -> 3806
let Hrs=DaysTill.CountHrs()
console.log(Hrs)
//Output -> 91351
let Mins=x.CountMinutes()
console.log(Mins)
//Output ->5481112
//That's all For Count Till
Whichfunctions
let Count=Daystilll.whichDate("Saturday",2,1,2002)
console.log(Count)
//Output -> 12
let Count=Daystilll.whichDay(12,12,2012)
console.log(Count)
//Output -> Wednesday
Happy Coding :)