snaptime
Transform timestamps with a simple DSL
Decision gist · record as of 2026-08-14
No. The package is abandoned (last commit 2017-06-15), has no specified Python version support, an unclear license, and high install friction. While the DSL concept is useful, the lack of maintenance means compatibility with modern Python is uncertain and security issues would go unaddressed. Use a maintained alternative or implement the snapping logic directly.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- No Python version requirement specified; compatibility with modern Python versions is uncertain given the package's abandonment since 2017-06-15.
- High install friction reported.
- The package is abandoned—last commit was 2017-06-15, with no maintenance activity or Python version specification.
License · maintenance · safety
UNKNOWN (unclear) — License is marked UNKNOWN with unclear treatment. No SPDX identifier is available. You should verify the actual license terms in the repository before using this package in a production or commercial context.
last release 2017-06-15 (3347 days) · last repo commit 2017-06-15 · 11 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 102,958 downloads/mo, #12,834 on PyPI
Alternatives
Verify before relying
from datetime import datetime
from snaptime import snap
result = snap(datetime(2018, 10, 28, 23), "+3h@d")
# datetime.datetime(2018, 10, 29, 0, 0)- Whether the package works with Python 3.x versions (development history suggests Python 2 focus)
- Current state of timezone-aware datetime handling and DST edge cases
- Whether snap_tz function is stable or has known issues with modern timezone libraries
What it is and what it does
Snaptime is a small utility for transforming timestamps using a domain-specific language (DSL) that chains snap and delta operations. It lets you truncate a datetime to a time boundary (e.g., start of day with @d) and add time offsets (e.g., +3h) in a single expression, inspired by Splunk's relative time syntax. The package includes a basic snap() function for naive datetimes and a snap_tz() variant for timezone-aware datetimes that handles daylight saving time transitions.
The DSL supports multiple notations for each time unit (seconds, minutes, hours, days, weeks, months, years) and allows arbitrary chaining—for example, snap(t, "+8h@d+1d+11h") adds 8 hours, snaps to midnight, then adds one day and 11 hours. It has no runtime dependencies, but the package has been abandoned since 2017-06-15 with no maintenance, no specified Python version support, and an unclear license.
Use it for
- Compute delivery times or scheduled events by snapping to time boundaries and adding offsets in a single expression.
- Truncate timestamps to specific time units (day, hour, week, month) for aggregation or reporting queries.
- Handle timezone-aware datetimes with DST transitions using snap_tz when naive snapping would produce incorrect results.
- Build time-based filters for log analysis or time-series data where relative time expressions are more readable than imperative datetime arithmetic.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last commit 2017-06-15), has no specified Python version support, an unclear license, and high install friction. While the DSL concept is useful, the lack of maintenance means compatibility with modern Python is uncertain and security issues would go unaddressed. Use a maintained alternative or implement the snapping logic directly.
Install
snaptime on PyPI
Before you install
High install friction reported. The package is abandoned—last commit was 2017-06-15, with no maintenance activity or Python version specification. Installation may encounter compatibility issues with modern Python environments.
No Python version requirement specified; compatibility with modern Python versions is uncertain given the package's abandonment since 2017-06-15.
License in practice
License is marked UNKNOWN with unclear treatment. No SPDX identifier is available. You should verify the actual license terms in the repository before using this package in a production or commercial context.
Quickstart
from datetime import datetime
from snaptime import snap
result = snap(datetime(2018, 10, 28, 23), "+3h@d")
# datetime.datetime(2018, 10, 29, 0, 0)
Verify before relying
- Whether the package works with Python 3.x versions (development history suggests Python 2 focus)
- Current state of timezone-aware datetime handling and DST edge cases
- Whether snap_tz function is stable or has known issues with modern timezone libraries
Package facts
| License | UNKNOWN unclear |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 3,347 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 102,958 / month, #12,834 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: snaptime-0.2.4.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “datetime truncation”
- snaptimeSnaptime transforms timestamps using a simple DSL inspired by…
- DateTimeRangeDateTimeRange creates and manipulates time range objects, supporting…
- prefixdateParses date strings with partial precision (year, month, or day) into…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also delta · ago · timeago · pytimeparse · pyawscron · pyRFC3339 · strict-rfc3339 · times · pytimeparse2 · pytz