hails-0.1.1: IFC enforcing web platform framework

Safe HaskellTrustworthy

LIO.Data.Time

Description

This module re-exports Data.Time wrapped in LIO. It is important to note that this module is only safe with the latest version of LIO, where toLabeled has been removed and timing attacked have been addressed. In similar vain, when executing a piece of code that you do not trust, it is important that the time primitives not be directly available.

Synopsis

Documentation

module Data.Time

getCurrentTime :: LabelState l p s => LIO l p s UTCTimeSource

Get the current UTC time from the system clock.

getZonedTime :: LabelState l p s => LIO l p s ZonedTimeSource

Get the local time together with a TimeZone.

utcToLocalZonedTime :: LabelState l p s => UTCTime -> LIO l p s ZonedTimeSource

Convert UTC time to local time with TimzeZone