How to use the jdcal.gcal2jd function in jdcal

To help you get started, we’ve selected a few jdcal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ericgazoni / openpyxl / openpyxl / date_time.py View on Github external
def to_excel(dt, offset=CALENDAR_WINDOWS_1900):
    jul = sum(gcal2jd(dt.year, dt.month, dt.day)) - offset
    if jul <= 60 and offset == CALENDAR_WINDOWS_1900:
        jul -= 1
    if hasattr(dt, 'time'):
        jul += time_to_days(dt)
    return jul

jdcal

Julian dates from proleptic Gregorian and Julian calendars.

BSD-2-Clause
Latest version published 6 years ago

Package Health Score

67 / 100
Full package analysis

Similar packages