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.

  1. formatUnixTimeGMT :: Format -> UnixTime -> ByteString

    unix-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
    

  2. getUnixTime :: IO UnixTime

    unix-time Data.UnixTime

    Get current UnixTime from OS.

  3. microSecondsToUnixDiffTime :: Integral a => a -> UnixDiffTime

    unix-time Data.UnixTime

    Creating difference from micro seconds.

    >>> microSecondsToUnixDiffTime (12345678 :: Int)
    UnixDiffTime {udtSeconds = 12, udtMicroSeconds = 345678}
    
    >>> microSecondsToUnixDiffTime ((-12345678) :: Int)
    UnixDiffTime {udtSeconds = -12, udtMicroSeconds = -345678}
    

  4. parseUnixTime :: Format -> ByteString -> UnixTime

    unix-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.

  5. parseUnixTimeGMT :: Format -> ByteString -> UnixTime

    unix-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}
    

  6. secondsToUnixDiffTime :: Integral a => a -> UnixDiffTime

    unix-time Data.UnixTime

    Creating difference from seconds.

    >>> secondsToUnixDiffTime (100 :: Int)
    UnixDiffTime {udtSeconds = 100, udtMicroSeconds = 0}
    

  7. data FixedAttr

    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).

  8. FixedAttr :: Style -> !Maybe Color -> !Maybe Color -> !Maybe Text -> FixedAttr

    vty Graphics.Vty.Attributes

    No documentation available.

  9. fixedBackColor :: FixedAttr -> !Maybe Color

    vty Graphics.Vty.Attributes

    No documentation available.

  10. fixedForeColor :: FixedAttr -> !Maybe Color

    vty Graphics.Vty.Attributes

    No documentation available.

Page 186 of many | Previous | Next