package syndic

  1. Overview
  2. Docs
RSS1, RSS2, Atom and OPML1 parsing

Install

Dune Dependency

Authors

Maintainers

Sources

syndic-1.3.tar.gz
sha256=6865e8426c0143a8d493239f7354212e4a927060e5d5f34d81c9b55b284b560d
md5=8761e38ad2ed93014b06160fa6397333

doc/syndic/Syndic_date/index.html

Module Syndic_date

Minimal date module required by Syndic.

A date with time.

val epoch : t

The POSIX time, i.e. Thursday, 1 January 1970 00:00:00 (UTC).

val compare : t -> t -> int

Compare dates in increasing order.

val max : t -> t -> t

max d1 d2 return the maximum (i.e. more recent) of the dates d1 and d2.

val min : t -> t -> t

max d1 d2 return the maximum (i.e. more recent) of the dates d1 and d2.

min d1 d2 return the minimum (i.e. less recent) of the dates d1 and d2.

val of_rfc822 : string -> t
val to_rfc822 : t -> string
val of_rfc3339 : string -> t
val to_rfc3339 : t -> string
type month =
  1. | Jan
  2. | Feb
  3. | Mar
  4. | Apr
  5. | May
  6. | Jun
  7. | Jul
  8. | Aug
  9. | Sep
  10. | Oct
  11. | Nov
  12. | Dec

Month of the year.

val string_of_month : month -> string

Return the 3 letters identifying the month in English.

val year : t -> int

Return the 4 digit year of the date.

val month : t -> month

Return the month of the date.

val day : t -> int

Return the day of the month (1..31).

val hour : t -> int
val minute : t -> int
val second : t -> float
OCaml

Innovation. Community. Security.