DateTimeExtensions

Static members

Static memberDescription
April(day, year)
Signature: (day:int * year:int) -> DateTime
August(day, year)
Signature: (day:int * year:int) -> DateTime
Days(value)
Signature: value:int -> DaysSelector
December(day, year)
Signature: (day:int * year:int) -> DateTime
February(day, year)
Signature: (day:int * year:int) -> DateTime
FirstDayOfMonth(date)
Signature: date:DateTime -> DateTime
GetDateRangeTo(self, toDate)
Signature: (self:DateTime * toDate:DateTime) -> IEnumerable<DateTime>
IsWeekend(value)
Signature: value:DateTime -> bool
January(day, year)
Signature: (day:int * year:int) -> DateTime
July(day, year)
Signature: (day:int * year:int) -> DateTime
June(day, year)
Signature: (day:int * year:int) -> DateTime
LastDayOfMonth(date)
Signature: date:DateTime -> DateTime
March(day, year)
Signature: (day:int * year:int) -> DateTime
May(day, year)
Signature: (day:int * year:int) -> DateTime
NextSunday(dt)
Signature: dt:DateTime -> DateTime
November(day, year)
Signature: (day:int * year:int) -> DateTime
October(day, year)
Signature: (day:int * year:int) -> DateTime
September(day, year)
Signature: (day:int * year:int) -> DateTime
ToHumanTimeString(...)
Signature: (span:TimeSpan * significantDigits:int) -> string

Converts objects to a simple human-readable string. Examples: 3.1 seconds, 2 minutes, 4.23 hours, etc.

ToRFC822DateString(date)
Signature: date:DateTime -> string

Converts a regular DateTime to a RFC822 date string.

ToUnixTimestamp(date)
Signature: date:DateTime -> int64

Converts a System.DateTime object to Unix timestamp

Weeks(value)
Signature: value:int -> WeekSelector
Years(value)
Signature: value:int -> YearsSelector