Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
formatUnixTimeGMT :: Format -> UnixTime -> ByteStringunix-time Data.UnixTime Formatting UnixTime to ByteString in GMT. This is a wrapper for strftime_l(). utMicroSeconds is ignored.
>>> formatUnixTimeGMT webDateFormat $ UnixTime 0 0 "Thu, 01 Jan 1970 00:00:00 GMT" >>> let ut = UnixTime 100 200 >>> let str = formatUnixTimeGMT "%s" ut >>> let ut' = parseUnixTimeGMT "%s" str >>> ((==) `on` utSeconds) ut ut' True >>> ((==) `on` utMicroSeconds) ut ut' False
-
unix-time Data.UnixTime Get current UnixTime from OS.
microSecondsToUnixDiffTime :: Integral a => a -> UnixDiffTimeunix-time Data.UnixTime Creating difference from micro seconds.
>>> microSecondsToUnixDiffTime (12345678 :: Int) UnixDiffTime {udtSeconds = 12, udtMicroSeconds = 345678}>>> microSecondsToUnixDiffTime ((-12345678) :: Int) UnixDiffTime {udtSeconds = -12, udtMicroSeconds = -345678}parseUnixTime :: Format -> ByteString -> UnixTimeunix-time Data.UnixTime Parsing ByteString to UnixTime interpreting as localtime. This is a wrapper for strptime_l(). Many implementations of strptime_l() do not support %Z and some implementations of strptime_l() do not support %z, either. utMicroSeconds is always set to 0.
parseUnixTimeGMT :: Format -> ByteString -> UnixTimeunix-time Data.UnixTime Parsing ByteString to UnixTime interpreting as GMT. This is a wrapper for strptime_l(). utMicroSeconds is always set to 0.
>>> parseUnixTimeGMT webDateFormat "Thu, 01 Jan 1970 00:00:00 GMT" UnixTime {utSeconds = 0, utMicroSeconds = 0}secondsToUnixDiffTime :: Integral a => a -> UnixDiffTimeunix-time Data.UnixTime Creating difference from seconds.
>>> secondsToUnixDiffTime (100 :: Int) UnixDiffTime {udtSeconds = 100, udtMicroSeconds = 0}-
vty Graphics.Vty.Attributes Specifies the display attributes such that the final style and color values do not depend on the previously applied display attribute. The display attributes can still depend on the terminal's default colors (unfortunately).
FixedAttr :: Style -> !Maybe Color -> !Maybe Color -> !Maybe Text -> FixedAttrvty Graphics.Vty.Attributes No documentation available.
fixedBackColor :: FixedAttr -> !Maybe Colorvty Graphics.Vty.Attributes No documentation available.
fixedForeColor :: FixedAttr -> !Maybe Colorvty Graphics.Vty.Attributes No documentation available.