use crate::foundation::sealed::Sealed;
use qtty::unit::{Day as DayUnit, Second as SecondUnit};
use super::time_format::TimeFormat;
#[derive(Debug, Copy, Clone)]
pub struct JD;
impl Sealed for JD {}
impl TimeFormat for JD {
type Unit = DayUnit;
const NAME: &'static str = "JD";
}
#[derive(Debug, Copy, Clone)]
pub struct MJD;
impl Sealed for MJD {}
impl TimeFormat for MJD {
type Unit = DayUnit;
const NAME: &'static str = "MJD";
}
#[derive(Debug, Copy, Clone)]
pub struct J2000s;
impl Sealed for J2000s {}
impl TimeFormat for J2000s {
type Unit = SecondUnit;
const NAME: &'static str = "J2000s";
}
#[derive(Debug, Copy, Clone)]
pub struct Unix;
impl Sealed for Unix {}
impl TimeFormat for Unix {
type Unit = SecondUnit;
const NAME: &'static str = "Unix";
}
#[derive(Debug, Copy, Clone)]
pub struct GPS;
impl Sealed for GPS {}
impl TimeFormat for GPS {
type Unit = SecondUnit;
const NAME: &'static str = "GPS";
}