--- id: jinja2-time version: "0.2.0" license: MIT license_treatment: permissive maintenance: abandoned --- # jinja2-time — Jinja2 Extension for Dates and Times License: permissive · Maintenance: abandoned · Downloads: 1.6M/mo ## What it is and what it does jinja2-time is a Jinja2 template extension that brings date and time functionality directly into template rendering. It provides a `now` tag that retrieves the current time in any timezone, formats it using strftime patterns, and supports relative time offsets (adding or subtracting hours, days, minutes, etc.). The extension also allows you to set a default datetime format on the environment to reduce boilerplate in templates. The package integrates arrow for its underlying datetime handling and is designed for use cases where templates need to render dynamic timestamps or time-relative content. It has no runtime dependencies beyond jinja2 and arrow, making it lightweight to install. However, it has been abandoned since 2016 with no active maintenance, so it may not work with very recent Python or dependency versions. Use it for: - Render current timestamps in templates with timezone awareness and custom formatting - Generate time-relative content by offsetting the current time in template expressions - Template-based report generation that includes dynamically formatted dates - Email or document templates that need to embed the current date in a specific format - Multi-timezone template rendering where different regions see localized time output ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Jinja2 extension that adds template tags for working with dates and times, including current time retrieval with timezone support and relative time offsets. No—not for new projects. The package is abandoned (last release 2016-06-08, last commit 2022-06-18) and offers only a thin convenience layer over jinja2 and arrow. For modern code, use arrow or Python's datetime directly in your template context, or consider a maintained Jinja2 extension. Install only if maintaining legacy code that already depends on it. ## Install pip install jinja2-time uv add jinja2-time poetry add jinja2-time ## Installing jinja2-time Before you install: Low install friction with no runtime dependencies beyond jinja2 and arrow, which are automatically installed. However, the package is abandoned—last release was 2016-06-08 and last commit 2022-06-18—so expect no maintenance or updates. License in practice: MIT license is permissive, allowing commercial and private use with minimal restrictions. Quickstart: pip install jinja2-time from jinja2 import Environment env = Environment(extensions=['jinja2_time.TimeExtension']) template = env.from_string("{% now 'utc' %}") template.render() Verify before relying: - Whether the package works reliably with Python versions beyond 3.5 listed in classifiers - Compatibility with current versions of jinja2 and arrow, given the age of the last release ## Package facts - License: MIT (permissive) - Python support: unspecified - Install friction: low - Maintenance: abandoned - Downloads: 1.6M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags jinja2 date time template tags, template datetime formatting, jinja2 timezone support, template now tag, relative time offset templates, jinja2 time extension, template datetime rendering, abandoned, jinja2-extension [View on SkillFed](https://skillfed.io/packages/jinja2-time) · [View on PyPI](https://pypi.org/project/jinja2-time/)