Looking for haskell Answers? Try Ask4KnowledgeBase
Looking for haskell Keywords? Try Ask4Keywords

Haskell LanguageFecha y hora


Sintaxis

  • addDays :: Integer -> Day -> Day

  • diffDays :: Day -> Day -> Integer

  • fromGregorian :: Integer -> Int -> Int -> Day

     convert from proleptic Gregorian calendar. First argument is year, second month number (1-12), third day (1-31). Invalid values will be clipped to the correct range, month first, then day.
    
  • getCurrentTime :: IO UTCTime

Observaciones

El módulo Data.Time del paquete de time proporciona soporte para recuperar y manipular valores de fecha y hora:

Fecha y hora Ejemplos relacionados