taffybar-0.4.3: A desktop bar similar to xmobar, but with more GUI

Safe HaskellNone
LanguageHaskell2010

System.Taffybar.SimpleClock

Description

This module implements a very simple text-based clock widget. The widget also toggles a calendar widget when clicked. This calendar is not fancy at all and has no data backend.

Synopsis

Documentation

textClockNew :: Maybe TimeLocale -> String -> Double -> IO Widget Source

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

textClockNewWith :: ClockConfig -> String -> Double -> IO 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