[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/core](../README) / datetime

# datetime

Date/time primitives for Zerotal — a fluent, ergonomic date-time API built on
`Temporal`. Exposes the immutable [Carbon](classes/Carbon) date-time value object and
the [CarbonInterval](classes/CarbonInterval) duration object. Isolated from the kernel barrel
(the `@zerotal/core/carbon` subpath) so consumers that don't need dates
avoid pulling in the Temporal polyfill.

## Example

```ts
import { Carbon, CarbonInterval } from "@zerotal/core/carbon";

const start = Carbon.now();
const later = start.add(CarbonInterval.days(3).andHours(6));
later.diffForHumans(start); // "in 3 days"
later.format("YYYY-MM-DD HH:mm");
```

## Classes

- [Carbon](classes/Carbon)
- [CarbonInterval](classes/CarbonInterval)

## Interfaces

- [DurationLike](interfaces/DurationLike)

## Type Aliases

- [CarbonInput](type-aliases/CarbonInput)
