Skip to content
mozrin edited this page Dec 14, 2025 · 2 revisions

Moztopia Universal Timestamp Library (C)

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

The Moztopia Universal Timestamp Library is a small, deterministic, zero‑dependency C implementation of the Universal Timestamp Specification (UTS).
Its purpose is simple: provide a stable, cross‑platform timestamp format and API that behaves identically across all languages, all environments, and all time sources.

This library is designed for systems where correctness, reproducibility, and clarity matter more than convenience.
No timezones. No locale quirks. No surprises.

If you need timestamps you can trust — this is the foundation.

Check out our other implementations for PHP, Python, Dart, Javascript, C++, Rust, and more.

We are always looking for help to maintain this project. If you are interested in contributing, please check out our Contributing guide.

Want to support the project? Consider buying us a coffee. We are a non-profit organization and your support is greatly appreciated.


Specification

The full Universal Timestamp Specification (UTS) defines:

  • Canonical and extended timestamp formats
  • Strict and lenient parsing rules
  • Nanosecond precision
  • Monotonic timestamp guarantees
  • Cross‑language conformance requirements
  • Zero‑dependency constraints
  • Reference test vectors

You can read the full specification here:

➡️ Universal Timestamp Specification


Contributing

Contributions are welcome — especially ports to other languages, conformance tests, and improvements to the reference C implementation.

Before contributing, please review:

  • Coding style expectations
  • Conformance requirements
  • Test vector rules
  • Zero‑dependency policy

Open a pull request when ready, or start a discussion if you want to propose changes to the spec or implementation.


Comments

Discussions are enabled for this project.
Use them for:

  • Questions
  • Design proposals
  • Implementation notes
  • Cross‑language port coordination
  • Feedback on the specification

➡️ Visit the Discussions tab to join the conversation.

Universal Timestamp (UTS)

📘 Specification

🧪 Conformance

🛠 Implementations

🔧 Design Notes

📚 Appendices

Clone this wiki locally