1.1.2 • Published 6 years ago

bmssamay v1.1.2

Weekly downloads
20
License
ISC
Repository
-
Last release
6 years ago

A lite version of moment

dependencies Status devDependencies Status

Functions used in the library:

Formatting & parsing functions

calcDate(structuredDate) - returns calculated date format

parseDate(strDate) - returns parse date(Bydefault parses into GMT time, so need +05:30 for IST conversion)

parseDateTime(strDate) - parses Date time (Function for format 20170317)

addDays(sourceDate, days) - Adds number of days from the source date and return the date adding x days

getDayName(dateObj, options = {}) - Returns day name eg Sunday', 'Monday' If short is passed as an option Return Tues else Tuesday

Add & Subtract functions

_subtract(value, type) - Return samay instance according to the value and type passed

_add(value, type) - Return samay instance according to the value and type passed`

Compare functions

isPastDate(date1,date2) - compares given 2 dates. (compares whether the date1 is past date from date2)

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.29

6 years ago

1.0.28

7 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago