glrss_parser/rss/date

Types

pub type DayOfWeek {
  Monday
  Tuesday
  Wednesday
  Thursday
  Friday
  Saturday
  Sunday
}

Constructors

  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
pub type RssDate {
  RssDate(
    day_of_week: Option(DayOfWeek),
    year: Int,
    month: Int,
    day: Int,
    hour: Int,
    minute: Int,
    second: Int,
    offset_minutes: Int,
  )
}

Constructors

  • RssDate(
      day_of_week: Option(DayOfWeek),
      year: Int,
      month: Int,
      day: Int,
      hour: Int,
      minute: Int,
      second: Int,
      offset_minutes: Int,
    )

Functions

pub fn dow_from(str: String) -> Result(DayOfWeek, Nil)
pub fn dow_to_short(from dow: DayOfWeek) -> String
pub fn empty() -> RssDate
pub fn parse(str: String) -> Result(RssDate, ParseError(a))

Parses RFC 822 dates. Currently it does not use the minute zimezone offset.

Search Document