You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// By default, 6 decimal places are retained for precisioncarbon.Parse("2024-01-24 12:00:00").Julian().JD() // 2460334carbon.Parse("2024-01-24 13:14:15").Julian().JD() // 2460334.051563// 4 decimal places are retained for precisioncarbon.Parse("2024-01-24 12:00:00").Julian().JD(4) // 2460334carbon.Parse("2024-01-24 13:14:15").Julian().JD(4) // 2460334.0516
Convert Gregorian calendar to Modified Julian Day
// By default, 6 decimal places are retained for precisioncarbon.Parse("2024-01-24 12:00:00").Julian().MJD() // 60333.5carbon.Parse("2024-01-24 13:14:15").Julian().MJD() // 60333.551563// 4 decimal places are retained for precisioncarbon.Parse("2024-01-24 12:00:00").Julian().MJD(4) // 60333.5carbon.Parse("2024-01-24 13:14:15").Julian().MJD(4) // 60333.5516
Convert Julian Day to Modified Julian Day
// By default, 6 decimal places are retained for precisioncarbon.CreateFromJulian(2460334).Julian().MJD() // 60333.5carbon.CreateFromJulian(2460334.051563).Julian().MJD() // 60332.551563// 4 decimal places are retained for precisioncarbon.CreateFromJulian(2460334).Julian().MJD(4) // 60333.5carbon.CreateFromJulian(2460334.051563).Julian().MJD(4) // 60332.5516
Convert Modified Julian Day to Julian Day
// By default, 6 decimal places are retained for precisioncarbon.CreateFromJulian(60333.5).Julian().JD()() // 2460334carbon.CreateFromJulian(60333.551563).Julian().JD()() // 2460333.051563// 4 decimal places are retained for precisioncarbon.CreateFromJulian(60333.5).Julian().JD(4) // 2460334carbon.CreateFromJulian(60333.551563).Julian().JD(4) // 2460333.0516
Convert Julian Day/Modified Julian Day to Gregorian calendar
// Convert Julian Day to Gregorian calendarcarbon.CreateFromJulian(2460334).ToDateTimeString() // 2024-01-24 12:00:00carbon.CreateFromJulian(2460334.051563).ToDateTimeString() // 2024-01-24 13:14:15// Convert Modified Julian Day to Gregorian calendarcarbon.CreateFromJulian(60333.5).ToDateTimeString() // 2024-01-24 12:00:00carbon.CreateFromJulian(60333.551563).ToDateTimeString() // 2024-01-24 13:14:15