NonGNU ELPA - datetime

datetime Atom Feed

Description
Parsing, formatting and matching timestamps
Latest
datetime-0.10.2.tar (.sig), 2025-Feb-03, 4.40 MiB
Maintainer
Paul Pogonyshev <pogonyshev@gmail.com>
Website
https://github.com/doublep/datetime
Browse ELPA's repository
CGit or Gitweb
Badge

To install this package from Emacs, use package-install or list-packages.

Full description

Library for generic timestamp handling.  It is targeted at bulk
processing, therefore many functions are optimized for speed, but
not necessarily for ease of use.  For example, formatting is done
in two steps: first you need to generate a formatting function for
given pattern, and only using it obtain formatted strings.

Package's main feature is timestamp parsing and formatting based on
Java pattern.  Arbitrary timezones and locales (i.e. not
necessarily those used by the system) are supported.  However,
specifying timezone in the input string to the parser function is
not implemented yet.  See functions `datetime-parser-to-float' and
`datetime-float-formatter' for details.

Library also supports timestamp matching.  It can generate regular
expressions that match timestamps corresponding to given pattern.
These regular expressions can give false positives, but for most
purposes are good enough to detect timestamps in text files,
e.g. in various application logs.  See `datetime-matching-regexp'.

Finally, library provides functions to select an appropriate
timestamp format for given locale.  For example, function
`datetime-locale-date-pattern' returns a Java pattern suitable for
formatting (or parsing) date only, without time part.  However, it
is not required that patterns are generated this way.

Old versions

datetime-0.10.1.tar.lz2025-Feb-01 409 KiB