Celestine API Documentation - v0.2.0
    Preparing search index...

    Interface CalendarDateTime

    Gregorian calendar date and time representation

    Used as the primary input format for astronomical calculations. All components must be valid according to the Gregorian calendar rules.

    interface CalendarDateTime {
        year: number;
        month: number;
        day: number;
        hour: number;
        minute: number;
        second: number;
        timezone?: number;
    }
    Index

    Properties

    year: number

    Full year (e.g., 2025, -100 for 101 BCE). Note: Year 0 doesn't exist historically.

    month: number

    Month of year, 1-12 (January = 1, December = 12)

    day: number

    Day of month, 1-31 (depending on month and year)

    hour: number

    Hour of day, 0-23 (0 = midnight, 12 = noon)

    minute: number

    Minute of hour, 0-59

    second: number

    Second of minute, 0-59.999... (fractional seconds allowed)

    timezone?: number

    Optional hours offset from UTC (e.g., -5 for EST, +1 for CET)