Locale & Batch
BridgeTime includes locale packs and calendar-style formatting in both Python and Node bindings.
Supported Locales
Section titled “Supported Locales”enfresdept
Use supported_locales() (Python) or supportedLocales() (Node.js) to inspect runtime locale availability.
Locale Formatting
Section titled “Locale Formatting”from bridgetime import bridge_time
dt = bridge_time.parse("2026-06-15T11:30:00Z", "Europe/Paris")print(dt.format_locale("dddd, D MMMM YYYY HH:mm", "fr"))print(dt.calendar(locale="fr"))import { bridgeTime } from "@bridgerust/bridgetime";
const dt = bridgeTime.parse("2026-06-15T11:30:00Z", "Europe/Paris");console.log(dt.formatLocale("dddd, D MMMM YYYY HH:mm", "fr"));console.log(dt.calendar("fr"));Batch APIs
Section titled “Batch APIs”Batch operations reduce call overhead for larger payloads.
parse_batch/parseBatchparse_format_batch/parseFormatBatchformat_batch/formatBatch
from bridgetime import bridge_time
payload = [ "2026-01-02T10:00:00Z", "2026-01-03T15:30:00Z", "2026-01-04T08:05:00Z",]
parsed = bridge_time.parse_batch(payload, "UTC")rendered = bridge_time.format_batch(payload, "YYYY-MM-DD HH:mm", "UTC")
print(len(parsed), rendered[:2])import { bridgeTime } from "@bridgerust/bridgetime";
const payload = [ "2026-01-02T10:00:00Z", "2026-01-03T15:30:00Z", "2026-01-04T08:05:00Z",];
const parsed = bridgeTime.parseBatch(payload, "UTC");const rendered = bridgeTime.formatBatch(payload, "YYYY-MM-DD HH:mm", "UTC");
console.log(parsed.length, rendered.slice(0, 2)); API Reference Full method index for date instances, factories, and durations.
BridgeTime Overview Return to high-level capabilities and package sources.