taffybar-4.0.1: A desktop bar similar to xmobar, but with more GUI
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Taffybar.Widget.SimpleClock

Synopsis

Documentation

textClockNew :: MonadIO m => Maybe TimeLocale -> String -> Double -> m Widget Source #

Create the widget. I recommend passing Nothing for the TimeLocale parameter. The format string can include Pango markup (http://developer.gnome.org/pango/stable/PangoMarkupFormat.html).

textClockNewWith :: MonadIO m => ClockConfig -> m Widget Source #

A configurable text-based clock widget. It currently allows for a configurable time zone through the ClockConfig.

See also textClockNew.

defaultClockConfig :: ClockConfig Source #

A clock configuration that defaults to the current locale