9 个仓库
Formats monetary values with precision appropriate for each currency, adjustable through a display precision setting.
Distinct from Monetary: Distinct from Monetary: focuses on display formatting and output alignment rather than the monetary value object itself.
Explore 9 awesome GitHub repositories matching software engineering & architecture · Display Formatting. Refine with filters or upvote what's useful.
Arrow 是一个 Python 日期和时间库,通过封装 Python 标准库,为创建和操作时间戳提供了简化的接口。它是一个用于管理日期对象、处理时区偏移以及执行相对日期计算的工具。 该库的特色在于能够将时间戳人性化地转换为多种语言的自然语言相对描述,并将人类可读的时间短语解析回精确的日期对象。它还具备一个专门的解析器,用于将 ISO 8601 字符串和自定义格式的文本转换为日期对象。 其广泛的功能包括用于日期偏移的时间算术、用于计算时间跨度的范围生成,以及用于将时间戳对齐到特定单位的边界舍入。它还涵盖了全球时区和夏令时转换,以及用于国际化日期格式的本地化翻译。
Translates custom alphanumeric tokens into date and time components for flexible string generation.
Tempus Dominus is a JavaScript date-time picker library designed to integrate with Bootstrap-based web projects, replacing manual text entry with an interactive calendar and clock interface. It functions as a form input enhancement that provides visual selection of single dates, times, or combined date-time values through a calendar and clock widget. The picker is built as a collection of independent UI components that manage their own state and rendering, with visual customization achieved entirely through CSS variables and class overrides without requiring JavaScript configuration. User int
Uses a configurable format string to drive locale-aware date and time display rendering.
Dinero.js is a TypeScript-first library for creating, calculating, and formatting monetary values. It provides immutable money objects that represent amounts in the smallest currency subdivision as integers, ensuring precision and preventing floating-point errors. The library enforces same-currency rules on arithmetic operations and validates currency codes against ISO 4217 definitions at creation time. The library distinguishes itself through a calculator plugin architecture that delegates arithmetic operations to interchangeable backends, supporting number, bigint, or custom precision libra
Formats monetary values as strings with optional custom transformer functions.
Pendulum is a Python datetime library used for creating, manipulating, and formatting date and time objects with native timezone awareness. It extends the native Python datetime class to maintain compatibility while providing a specialized engine for date arithmetic and timezone management. The library features a dedicated ISO 8601 and RFC 3339 parser that converts standardized strings into date objects without requiring manual format strings. It also includes a relative time generator for producing natural language descriptions of time differences and a timezone management tool that automati
Uses a mapping of custom tokens and locale-specific strings to translate date attributes into human-readable text.
这是一个 JavaScript 时间转换库,旨在将毫秒整数格式化为人类可读的持续时间,并将基于单位的字符串解析回总毫秒数。它作为一个用于管理机器可读持续时间与文本表示之间转换的工具。 该库提供双向映射,允许将原始数字转换为字符串,并将包含天、小时和分钟等单位的字符串解析回数字毫秒计数。它支持缩写和完整的书写时间格式。
Implements an iterative subtraction algorithm to break down milliseconds into a readable sequence of time units.
Beancount is a plain-text double-entry accounting system. It enforces zero-sum transactions, organizes accounts into a hierarchical five-type tree, and verifies balances at specific dates using precision-derived tolerances. Transactions are recorded in plain-text files with a strict syntax that supports currency-specific rounding, automatic interpolation of missing amounts, and comprehensive metadata including tags, links, and payee annotations. Beyond core bookkeeping, Beancount offers investment portfolio tracking with lot-based cost basis management, configurable booking strategies (FIFO,
Ledger displays monetary values with precision appropriate for each currency, adjustable through a display precision setting.
Spacetime 是一个 JavaScript 时区库和日期操作框架,专为解析、格式化和管理全球时区日期而设计。它提供了一个用于本地化日期组件的国际化工具,并包含用于 TypeScript 环境的静态类型定义,以确保类型检查和自动补全。 该项目具有用于自定义日期逻辑的插件系统,允许将专用方法和行为注入日期对象。这种可扩展性使得能够通过基于原型的方法扩展来实现项目特定的时间需求。 该库涵盖了广泛的日期和时间操作,包括用于添加或减去时间单位的日历数学、日期比较实用程序,以及用于检索日历详细信息的组件提取。它处理全球时区管理,具有区域偏移、夏令时计算以及不同时区之间转换的功能。 该系统还提供针对 ISO 字符串、纪元和自然语言输入的解析和验证,以及使用区域语言设置和自定义模板将日期对象转换为人类可读文本的格式化工具。
Transforms date and time objects into readable strings using formatting tokens and predefined presets.
Awesome Print 是一个 Ruby 漂亮打印机和对象检查器,旨在通过缩进和 ANSI 颜色可视化数据结构。它作为交互式 shell 的格式化程序,以及用于分析内部对象状态的实用程序。 该项目具有一个用于定义特定对象类型的自定义格式化规则的插件系统,并支持通过主目录中的配置文件加载全局首选项。它可以返回格式化的 ASCII 字符串,而不是直接打印到控制台。 功能扩展到在 Web 模板中渲染格式化的对象结构,并将彩色对象表示写入系统日志。该工具与 REPL 环境集成,以自动格式化返回的值。
Transforms object states into formatted HTML for visualization within web views during debugging.
This project is a proposal for a new immutable date and time API in JavaScript. It serves as a precision time-tracking library and a multi-calendar date engine designed to replace the legacy Date object. The system is distinguished by its support for multiple calendar systems beyond the ISO standard and its use of IANA-based time zone resolution. It provides a framework for managing daylight saving transitions and UTC offsets while maintaining nanosecond precision for global timestamps. The API covers broad functional areas including complex date and time arithmetic, locale-aware formatting,
Produces unambiguous RFC 9557 string representations of dates with configurable calendar annotations.