scitex-datetime
Small datetime helpers — linspace, normalize, parse, format.
Full Documentation · uv pip install scitex-datetime[all]
Quick Start
import scitex_datetime as sxd
dt = sxd.to_datetime("2026/04/27 10:30:00")
print(sxd.format_for_filename(dt)) # "2026-04-27_103000"
Demo
flowchart LR
S1["'2026/04/27 10:30:00'"] --> P["sxd.to_datetime()"]
S2["'2026-04-27T10:30:00'"] --> N["sxd.normalize_timestamp()"]
P --> D["datetime"]
N --> D
D --> F["sxd.format_for_filename()<br/>→ '2026-04-27_103000'"]
A["start, stop"] --> L["sxd.linspace(num=100)"]
L --> R["[datetime, ...]"]
Figure 1. Demo path. Parse and normalize converge on datetimes, then format for filenames; linspace covers ranges.
Installation
uv pip install "scitex-datetime[all]"
Per-module extras
| Extra | Pulls in |
|---|---|
all |
scitex-io + dev (recommended) |
dev |
pytest, pytest-cov, ruff, Sphinx (maintainer tooling) |
uv pip install -e ".[dev]" # editable install for contributors
flowchart LR
Raw[heterogeneous strings] --> Parse[to_datetime / normalize_timestamp]
Parse --> Std[standardized datetime]
Std --> Display[format_for_display]
Std --> File[format_for_filename]
Range[start, stop] --> Lin[linspace]
Lin --> Arr[[datetime, ...]]
Figure 2. Helper flow. Raw strings parse to standard datetimes for display or filenames; linspace builds uniform arrays.
Pure-stdlib datetime helpers; the umbrella scitex.datetime import path
is preserved via a sys.modules-alias bridge.
1 Interfaces
Python API
import scitex_datetime as sxd
# Linearly spaced timestamps
sxd.linspace(start, stop, num=100)
# Parse and standardize timestamps
sxd.normalize_timestamp("2026-04-27T10:30:00")
sxd.to_datetime("2026/04/27 10:30:00")
sxd.validate_timestamp_format("2026-04-27 10:30:00")
# Format
sxd.format_for_display(dt) # "2026-04-27 10:30:00"
sxd.format_for_filename(dt) # "2026-04-27_103000"
# Time deltas
sxd.get_time_delta_seconds(dt1, dt2)
Status
Standalone fork of scitex.datetime. The umbrella package's scitex.datetime
import path is preserved via a sys.modules-alias bridge. STANDARD_FORMAT
is read from a scitex CONFIG when available, falling back to "%Y-%m-%d %H:%M:%S".
Part of SciTeX
scitex-datetime is part of SciTeX. Install via
the umbrella with pip install scitex[datetime] to use as
scitex.datetime (Python) or scitex datetime ... (CLI).
Four Freedoms for Research
- The freedom to run your research anywhere — your machine, your terms.
- The freedom to study how every step works — from raw data to final manuscript.
- The freedom to redistribute your workflows, not just your papers.
- The freedom to modify any module and share improvements with the community.
AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.
License
AGPL-3.0-only (see LICENSE).
Metadata
Release files for scitex-datetime 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| scitex_datetime-0.1.5.tar.gz | 24.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scitex_datetime-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.4 kB
Release files / scitex_datetime-0.1.5.tar.gz
| Download URL | scitex_datetime-0.1.5.tar.gz |
|---|---|
| Size | 24.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fb1901274d834647253c918d21fddf8b0dcd3567b6c459a39769f448f124a3a
|
|
BLAKE2b-256 checksum How to use checksums |
251421b8b0c38f0b2af0f9ff229d8b8537397fb1ccb4c844f64bae9af6445146
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / scitex_datetime-0.1.5-py3-none-any.whl
| Download URL | scitex_datetime-0.1.5-py3-none-any.whl |
|---|---|
| Size | 24.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f48e754eefdaf9ca5f2f2877c224c1d5fca7367049bbbbbb79d393f3604886fe
|
|
BLAKE2b-256 checksum How to use checksums |
c3ec980df6fa023ae8e5eec3d52b3e3a22fb62fdae867d84320875d9394fbe07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for scitex-datetime 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.