Haskell | Wiki community | Recent changes Random page | Special pages
Not logged in Log in | Help
Edit this page | Discuss this page | Page history | What links here | Related changes
Categories: How to
In order to get the date:
import Data.Time.Clock import Data.Time.Calendar date :: IO (Integer,Int,Int) -- :: (year,month,day) date = getCurrentTime >>= return . toGregorian . utctDay