datetime

Types

pub type DateTime {
  NaiveTime
  DateTime
}

Constructors

  • NaiveTime
  • DateTime
pub type DateTimeNaive {
  DateTimeNaive(
    year: Year,
    month: Month,
    day: Day,
    hour: Hour,
    minute: Minute,
    second: Second,
  )
}

Constructors

  • DateTimeNaive(
      year: Year,
      month: Month,
      day: Day,
      hour: Hour,
      minute: Minute,
      second: Second,
    )
pub type Day =
  Int
pub type Hour =
  Int
pub type Minute =
  Int
pub type Month =
  Int
pub type NaiveDate {
  NaiveDate(hour: Hour, minute: Minute, second: Second)
}

Constructors

  • NaiveDate(hour: Hour, minute: Minute, second: Second)
pub type Second =
  Int
pub type Timestamp =
  Int
pub type Year =
  Int

Functions

pub fn date() -> NaiveDate
pub fn timestamp() -> Int
Search Document