Skip to content

arlas-d3 / Exports / Season

Class: Season

Enum storing the first day of each season

Table of contents

Properties

Methods

Properties

AUTUMN

Static Readonly AUTUMN: Season

Defined in

src/calendar-timeline/lib/classes/season.ts:25


SPRING

Static Readonly SPRING: Season

Defined in

src/calendar-timeline/lib/classes/season.ts:23


SUMMER

Static Readonly SUMMER: Season

Defined in

src/calendar-timeline/lib/classes/season.ts:24


WINTER

Static Readonly WINTER: Season

Defined in

src/calendar-timeline/lib/classes/season.ts:26

Methods

getDate

getDate(year): Date

Parameters

Name Type
year number

Returns

Date

Defined in

src/calendar-timeline/lib/classes/season.ts:37


toString

toString(): string

Returns

string

Defined in

src/calendar-timeline/lib/classes/season.ts:33


getNextSeasonStartFromDate

Static getNextSeasonStartFromDate(d): Date

Parameters

Name Type
d Date

Returns

Date

Defined in

src/calendar-timeline/lib/classes/season.ts:75


getPreviousSeasonStartFromDate

Static getPreviousSeasonStartFromDate(d): Date

Parameters

Name Type
d Date

Returns

Date

Defined in

src/calendar-timeline/lib/classes/season.ts:92


getSeason

Static getSeason(name): Season

Parameters

Name Type
name string

Returns

Season

Defined in

src/calendar-timeline/lib/classes/season.ts:110


getSeasonNameFromDate

Static getSeasonNameFromDate(d): string

Parameters

Name Type
d Date

Returns

string

Defined in

src/calendar-timeline/lib/classes/season.ts:58


getSeasonStartFromDate

Static getSeasonStartFromDate(d): Date

Parameters

Name Type
d Date

Returns

Date

Defined in

src/calendar-timeline/lib/classes/season.ts:41