P5-time-format

Jul 20, 2023

Easy-to-use date/time formatting

TimeFormat provides a very easy way to format dates and times. The formatting functions are tied to hash variables, so they can be used inside strings as well as in ordinary expressions. The formatting codes used are meant to be easy to remember, use, and read. They follow a simple, consistent pattern. If I’ve done my job right, once you learn the codes, you should never have to refer to the documentation again. A quick-reference page is included, just in case. ;-

TimeFormat can also format DateTime objects, and strings created with DateManip.

Also provided is a tied-hash interface to POSIXstrftime and DateManipUnixDate.

If the I18NLanginfo module is available, TimeFormat provides weekday and month names in a language appropriate for your locale.

A companion module, TimeFormat_XS, is also available; if it is installed, TimeFormat will detect and use it, which will result in a significant speed improvement.



Checkout these related ports:
  • Zziplib - Library to provide transparent read access to zipped files
  • Zydis - Fast and lightweight x86/x86-64 disassembler library
  • Zycore-c - Support library with platform independent types, macros, etc for Zydis
  • Zthread - Platform-independent object-oriented C++ threading library
  • Zookeeper - Coordination Service for Distributed Applications
  • Zls - Zig LSP implementation + Zig Language Server
  • Zfp - High throughput library for compressed floating-point arrays
  • Zeal - Offline documentation browser
  • Zapcc - C++ caching compiler based on clang
  • Zanata-platform - Web-based translation platform
  • Zanata-cli - Zanata Java command line client
  • Z88dk - Complete Z80/Z180 development kit
  • Z80ex - ZiLOG Z80 CPU emulator library
  • Z80asm - Assembler for the Z80 microprocessor
  • Z80-asm - Z80 assembly code assembler and disassembler