leapseconds-announced alternatives and similar packages
Based on the "System" category.
Alternatively, view leapseconds-announced alternatives based on common mentions on social networks and blogs.
-
optparse-applicative
Applicative option parser -
taffybar
A gtk based status bar for tiling window managers such as XMonad -
hapistrano
Deploy tool for Haskell applications, like Capistrano for Rails -
optparse-generic
Auto-generate a command-line parser for your datatype -
ghc-hotswap
Example code for how we swap compiled code within a running Haskell process. -
nix-deploy
Deploy software or an entire NixOS system configuration to another NixOS system -
directory
Platform-independent library for basic file system operations -
pid1
Do signal handling and orphan reaping for Unix PID1 init processes -
typed-process
Alternative API for processes, featuring more type safety -
clock
High-resolution clock functions: monotonic, realtime, cputime. -
openssh-github-keys
Control SSH access to your servers via GitHub teams -
hail
A service for pull-based continuous deployment based on hydra. -
hnix-store-core
Haskell implementation of the nix store API -
atomic-write
Writes files atomically in Haskell while preserving permissions -
system-fileio
Contains the system-filepath and system-fileio packages -
language-puppet
A library to work with Puppet manifests, test them and eventually replace everything ruby. -
ascii-progress
A simple Haskell progress bar for the console. Heavily borrows from TJ Holowaychuk's Node.JS project -
optparse-declarative
Declarative command-line option parser -
plugins
Dynamic linking and runtime evaluation of Haskell, and C, including dependency chasing and package resolution. -
executable-hash
Provides the SHA1 hash of the program executable -
directory-contents
Recursively build a tree of directory contents, avoiding symlink cycles -
halfs
The Haskell File System: A file system implementation in Haskell
Access the most powerful time series database as a service
Do you think we are missing an alternative of leapseconds-announced or a related project?
README
leapseconds-announced
This libraray provides a static Data.Time.Clock.TAI.LeapSecondTable
"containing" the leap seconds announced at library release time.
A new version of the library is released every time the International
Earth Rotation and Reference Systems Service (IERS) announces a new
leap second at http://hpiers.obspm.fr/eoppc/bul/bulc/bulletinc.dat.
This module is intended to provide a quick-and-dirty leap second solution for one-off analyses concerned only with the past and present (i.e. up until the next as of yet unannounced leap second), or for applications which can afford to be recompiled against an updated library as often as every six months.
Usage
Import Data.Time.Clock.AnnouncedLeapSeconds
to bring the leap
second table lst
into scope. Here is a usage example:
import Data.Time
import Data.Time.Clock.TAI
import Data.Time.Clock.AnnouncedLeapSeconds
-- | Convert from UTC to TAI.
utcToTAITime' = utcToTAITime lst
-- | Convert from TAI to UTC.
taiToUTCTime' = taiToUTCTime lst
-- | Add a length of time to a UTC time, respecting leap seconds
-- (as opposed to Data.Time.Clock.addUTCTime).
addUTCTime' :: DiffTime -> UTCTime -> Maybe UTCTime
addUTCTime' dt utc = taiToUTCTime' . addAbsoluteTime dt =<< utcToTAITime' utc