5.0.5 • Published 1 year ago

@ff0000-ad-tech/ad-dates v5.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
1 year ago
RED Interactive Agency - Ad Technology

npm (tag) GitHub issues npm downloads

GitHub contributors GitHub commit-activity npm license PRs Welcome


ad-dates

A lightweight package for handling dates created for use in digital ads where file weight limits are strict.

API

DateFormatter

  • .setLanguage()
  • .addLanguage()
  • .getLabels()TzDate | Date
  • .getNumericSuffixFor()String
  • .format()String

DateManager

  • .init()
  • .getNow()TzDate

DateSchedule

  • new DateSchedule(arg)
  • .target : TzDate
  • .current : object
  • .currentDate : TzDate
  • .currentLabel : String
  • .currentIndex : Number
  • .next : object
  • .nextDate : TzDate
  • .nextLabel : String
  • .nextIndex : Number
  • .isLive : Boolean
  • .isComplete : Boolean
  • .addDate(tzDate, label, callback)
  • .print()
  • .getDates()Array

DateUtils

  • .getTimeDifference()Object
  • .adjust()TzDate | Date
  • .isPast(date, context)boolean

RecurringSchedule

  • new RecurringSchedule()
  • .currentSchedule : object
  • .current : object
  • .currentDate : TzDate
  • .currentLabel : String
  • .print()

Timezone

  • .get()string

TzDate

  • new TzDate()
  • .outputTimezone : object | string | number
  • .clone()TzDate
  • .getHoursIn()number
  • .format()String
  • .getIn()TzDate
  • .print()string
  • .toFullDateTime()string
  • .toSimpleDate()string
  • .toDate()string
  • .toDateTime()string
  • .toSimpleDateTime()string
  • .toTime()string
  • .toSimpleTime()string
  • .toMeridiem()string
  • .toShortestTime()string

5.0.5

1 year ago

5.0.2

2 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.1.3

5 years ago

4.1.2

5 years ago

4.1.1

6 years ago

4.1.0

6 years ago

4.0.1

6 years ago

4.0.0

6 years ago

3.1.7

6 years ago

3.1.6

6 years ago

3.1.5

6 years ago

3.1.4

6 years ago

3.1.3

6 years ago

3.1.2

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago