1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// SPDX-FileCopyrightText: 2023 Andrei Zisu <matzipan@gmail.com>
// SPDX-FileCopyrightText: 2023 Angus Morrison <github@angus-morrison.com>
// SPDX-FileCopyrightText: 2023 Helge Eichhorn <git@helgeeichhorn.de>
//
// SPDX-License-Identifier: MPL-2.0
/*!
`lox-time` defines an API for working with instants in astronomical time scales.
# Overview
`lox_time` exposes:
- the marker trait [TimeScale] and zero-sized implementations representing the most common,
continuous astronomical time scales;
- the concrete type [Time] representing an instant in a [TimeScale];
- [Utc], the only discontinuous time representation supported by Lox;
- the [TryToScale] and [ToScale] traits, supporting transformations between pairs of time
scales;
- standard implementations of the most common time scale transformations.
# Continuous vs discontinuous timescales
Internally, Lox uses only continuous time scales (i.e. time scales without leap seconds). An
instance of [Time] represents an instant in time generic over a continuous [TimeScale].
[Utc] is used strictly as an I/O time format, which must be transformed into a continuous time
scale before use in the wider Lox ecosystem.
This separation minimises the complexity in working with leap seconds, confining these
transformations to the crate boundaries.
*/
/// Calendar date types (re-exported from `lox-core`).
/// Conversions between `lox-time` and `chrono` types.
/// Time deltas (re-exported from `lox-core`).
/// Time intervals and set operations on them.
/// Julian date types (re-exported from `lox-core`).
/// Time scale offset computation.
/// Time-indexed interpolation series.
/// Sub-second precision types (re-exported from `lox-core`).
/// The [`Time`] type representing an instant in a continuous time scale.
/// Time-of-day types (re-exported from `lox-core`).
/// Astronomical time scale definitions.
/// Coordinated Universal Time (UTC) with leap-second support.
pub use ;