Options
All
  • Public
  • Public/Protected
  • All
Menu

Class representing an MMWR date

Hierarchy

  • MMWRDate

Index

Constructors

constructor

  • new MMWRDate(year: number, week?: number, day?: number): MMWRDate
  • Parameters

    • year: number
    • Optional week: number
    • Optional day: number

    Returns MMWRDate

Properties

Optional day

day: number

Optional week

week: number

year

year: number

Accessors

nWeeks

nWeeks:

Return number of weeks in this MMWR season

startMomentDate

startMomentDate:

Return year start moment date

Methods

applyWeekDiff

  • applyWeekDiff(delta: number): void
  • Apply week delta Equivalent of this = this + delta

    Parameters

    • delta: number

    Returns void

diffWeek

  • Return number of weeks differing from this. Equivalent of this - mdate

    Parameters

    Returns number

fromEpiweek

  • fromEpiweek(epiweek: Epiweek): void

fromJSDate

  • fromJSDate(date?: Date): void
  • Set values using given JS date. Defaults to now.

    Parameters

    • Default value date: Date = (new Date())

    Returns void

fromMomentDate

  • fromMomentDate(date?: Moment): void
  • Set values using given moment date. Defaults to now.

    Parameters

    • Default value date: Moment = moment()

    Returns void

toEpiweek

toJSDate

  • toJSDate(): Date
  • Return plain JS date representation

    Returns Date

toMomentDate

  • toMomentDate(): Moment
  • Return a moment representation of the date

    Returns Moment

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc