-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJulianDates.cs
630 lines (550 loc) · 22.5 KB
/
JulianDates.cs
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
using System.Globalization;
namespace JulianAndHisDates
{
/// <summary>
/// JulianDates
/// </summary>
public static class JulianDates
{
#region consonants
/// <summary>
/// Julian Date coefficient
/// </summary>
private const double doubleJulianDateCoefficient = 2415018.5;
/// <summary>
/// Modified Julian Date coefficient
/// </summary>
private const double doubleModifiedJulianDateCoefficient = 2400000.5;
/// <summary>
/// Reduced Julian Date coefficient
/// </summary>
private const double doubleReducedJulianDateCoefficient = 2400000;
/// <summary>
/// Truncated Julian Date coefficient
/// </summary>
private const double doubleTruncatedJulianDateCoefficient = 2440000.5;
/// <summary>
/// Dublin Julian Date coefficient
/// </summary>
private const double doubleDublinJulianDateCoefficient = 2415020;
/// <summary>
/// CCNES Julian Date coefficient
/// </summary>
private const double doubleCnesJulianDateCoefficient = 2433282.5;
/// <summary>
/// CCSDS Julian Date coefficient
/// </summary>
private const double doubleCcsdsJulianDateCoefficient = 2436204.5;
/// <summary>
/// LOP Julian Date coefficient
/// </summary>
private const double doubleLopJulianDateCoefficient = 2448622.5;
/// <summary>
/// Millennium Julian Date coefficient
/// </summary>
private const double doubleMillenniumJulianDateCoefficient = 2451544.5;
/// <summary>
/// Lilian Date coefficient
/// </summary>
private const double doubleLilianDateCoefficient = 2299159.5;
/// <summary>
/// Rata Die coefficient
/// </summary>
private const double doubleRataDieCoefficient = 1721424.5;
/// <summary>
/// Mars Sol Date coefficient
/// </summary>
private const double doubleMarsSolDateCoefficient = 2405522;
/// <summary>
/// ratio of the rotation of Earth and Mars
/// </summary>
private const double doubleRatioRotationAxisEarthMars = 1.02749;
/// <summary>
/// Unix Time coefficient
/// </summary>
private const double doubleUnixtimeCoefficient = 2440587.5;
/// <summary>
/// seconds in a day
/// </summary>
private const int secondsOfDay = 86400;
#endregion
#region JD Calculators
/// <summary>
/// Calculate the Julian Date from the Universal time
/// </summary>
/// <returns>Julian Date</returns>
public static double CalculateJulianDate() => DateTime.Now.ToUniversalTime().ToOADate() + doubleJulianDateCoefficient;
/// <summary>
/// Calculate the Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Julian Date</returns>
public static double CalculateJulianDate(DateTime date) => date.ToOADate() + doubleJulianDateCoefficient;
/// <summary>
/// Calculate the Modified Julian Date
/// </summary>
/// <returns>Modified Julian Date</returns>
public static double CalculateModifiedJulianDate() => CalculateJulianDate() - doubleModifiedJulianDateCoefficient;
/// <summary>
/// Calculate the Modified Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Modified Julian Date</returns>
public static double CalculateModifiedJulianDate(DateTime date) => CalculateJulianDate(date: date) - doubleModifiedJulianDateCoefficient;
/// <summary>
/// Calculate the Modified Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Modified Julian Date</returns>
public static double CalculateModifiedJulianDate(double julianDate) => julianDate - doubleModifiedJulianDateCoefficient;
/// <summary>
/// Calculate the Reduced Julian Date
/// </summary>
/// <returns>Reduced Julian Date</returns>
public static double CalculateReducedJulianDate() => CalculateJulianDate() - doubleReducedJulianDateCoefficient;
/// <summary>
/// Calculate the Reduced Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Reduced Julian Date</returns>
public static double CalculateReducedJulianDate(DateTime date) => CalculateJulianDate(date: date) - doubleReducedJulianDateCoefficient;
/// <summary>
/// Calculate the Reduced Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Reduced Julian Date</returns>
public static double CalculateReducedJulianDate(double julianDate) => julianDate - doubleReducedJulianDateCoefficient;
/// <summary>
/// Calculate the Truncated Julian Date
/// </summary>
/// <returns>Truncated Julian Date</returns>
public static double CalculateTruncatedJulianDate() => Math.Floor(d: CalculateJulianDate() - doubleTruncatedJulianDateCoefficient);
/// <summary>
/// Calculate the Truncated Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Truncated Julian Date</returns>
public static double CalculateTruncatedJulianDate(DateTime date) => Math.Floor(d: CalculateJulianDate(date: date) - doubleTruncatedJulianDateCoefficient);
/// <summary>
/// Calculate the Truncated Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Truncated Julian Date</returns>
public static double CalculateTruncatedJulianDate(double julianDate) => Math.Floor(d: julianDate - doubleTruncatedJulianDateCoefficient);
/// <summary>
/// Calculate the Dublin Julian Date
/// </summary>
/// <returns>Dublin Julian Date</returns>
public static double CalculateDublinJulianDate() => CalculateJulianDate() - doubleDublinJulianDateCoefficient;
/// <summary>
/// Calculate the Dublin Julian Date from the date
/// </summary>
/// <param name="date"></param>
/// <returns>Dublin Julian Date</returns>
public static double CalculateDublinJulianDate(DateTime date) => CalculateJulianDate(date: date) - doubleDublinJulianDateCoefficient;
/// <summary>
/// Calculate the Dublin Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate"></param>
/// <returns>Dublin Julian Date</returns>
public static double CalculateDublinJulianDate(double julianDate) => julianDate - doubleDublinJulianDateCoefficient;
/// <summary>
/// Calculate the CNES Julian Date
/// </summary>
/// <returns>CNES Julian Date</returns>
public static double CalculateCnesJulianDate() => CalculateJulianDate() - doubleCnesJulianDateCoefficient;
/// <summary>
/// Calculate the CNES Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>CNES Julian Date</returns>
public static double CalculateCnesJulianDate(DateTime date) => CalculateJulianDate(date: date) - doubleCnesJulianDateCoefficient;
/// <summary>
/// Calculate the CNES Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>CNES Julian Date</returns>
public static double CalculateCnesJulianDate(double julianDate) => julianDate - doubleCnesJulianDateCoefficient;
/// <summary>
/// Calculate the CCSDS Julian Date
/// </summary>
/// <returns>CCSDS Julian Date</returns>
public static double CalculateCcsdsJulianDate() => CalculateJulianDate() - doubleCcsdsJulianDateCoefficient;
/// <summary>
/// Calculate the CCSDS Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>CCSDS Julian Date</returns>
public static double CalculateCcsdsJulianDate(DateTime date) => CalculateJulianDate(date: date) - doubleCcsdsJulianDateCoefficient;
/// <summary>
/// Calculate the CCSDS Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>CCSDS Julian Date</returns>
public static double CalculateCcsdsJulianDate(double julianDate) => julianDate - doubleCcsdsJulianDateCoefficient;
/// <summary>
/// Calculate the LOP Julian Date
/// </summary>
/// <returns>LOP Julian Date</returns>
public static double CalculateLopJulianDate() => CalculateJulianDate() - doubleLopJulianDateCoefficient;
/// <summary>
/// Calculate the LOP Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>LOP Julian Date</returns>
public static double CalculateLopJulianDate(DateTime date) => CalculateJulianDate(date: date) - doubleLopJulianDateCoefficient;
/// <summary>
/// Calculate the LOP Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns></returns>
/// <returns>LOP Julian Date</returns>
public static double CalculateLopJulianDate(double julianDate) => julianDate - doubleLopJulianDateCoefficient;
/// <summary>
/// Calculate the Millennium Julian Date
/// </summary>
/// <returns>Millennium Julian Date</returns>
public static double CalculateMillenniumJulianDate() => CalculateJulianDate() - doubleMillenniumJulianDateCoefficient;
/// <summary>
/// Calculate the Millennium Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Millennium Julian Date</returns>
public static double CalculateMillenniumJulianDate(DateTime date) => CalculateJulianDate(date: date) - doubleMillenniumJulianDateCoefficient;
/// <summary>
/// Calculate the Millennium Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Millennium Julian Date</returns>
public static double CalculateMillenniumJulianDate(double julianDate) => julianDate - doubleMillenniumJulianDateCoefficient;
/// <summary>
/// Calculate the Chronological Julian Date
/// </summary>
/// <returns>Chronological Julian Date</returns>
public static double CalculateChronologicalJulianDate()
{
TimeZone zone = TimeZone.CurrentTimeZone;
DaylightTime time = zone.GetDaylightChanges(year: DateTime.Today.Year);
//System.Windows.Forms.MessageBox.Show((time.Delta.Hours * (24 / 100)).ToString());
//double a = time.Delta.Hours / 24.0;
return CalculateJulianDate() + 0.5 + (time.Delta.Hours / 24.0);
}
/// <summary>
/// Calculate the Chronological Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Chronological Julian Date</returns>
public static double CalculateChronologicalJulianDate(DateTime date)
{
TimeZone zone = TimeZone.CurrentTimeZone;
DaylightTime time = zone.GetDaylightChanges(year: DateTime.Today.Year);
return CalculateJulianDate(date: date) + 0.5 + (time.Delta.Hours / 24.0);
}
/// <summary>
/// Calculate the Chronological Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Chronological Julian Date</returns>
public static double CalculateChronologicalJulianDate(double julianDate)
{
TimeZone zone = TimeZone.CurrentTimeZone;
DaylightTime time = zone.GetDaylightChanges(year: DateTime.Today.Year);
return julianDate + 0.5 + (time.Delta.Hours / 24.0);
}
/// <summary>
/// Calculate the Chronological Modified Julian Date
/// </summary>
/// <returns>Chronological Modified Julian Date</returns>
public static double CalculateChronologicalModifiedJulianDate()
{
TimeZone zone = TimeZone.CurrentTimeZone;
DaylightTime time = zone.GetDaylightChanges(year: DateTime.Today.Year);
//System.Windows.Forms.MessageBox.Show((time.Delta.Hours * (24 / 100)).ToString());
//double a = time.Delta.Hours / 24.0;
return CalculateJulianDate() - doubleModifiedJulianDateCoefficient + 0.5 + (time.Delta.Hours / 24.0);
}
/// <summary>
/// Calculate the Chronological Modified Julian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Chronological Modified Julian Date</returns>
public static double CalculateChronologicalModifiedJulianDate(DateTime date)
{
TimeZone zone = TimeZone.CurrentTimeZone;
DaylightTime time = zone.GetDaylightChanges(year: DateTime.Today.Year);
return CalculateJulianDate(date: date) -
doubleModifiedJulianDateCoefficient +
0.5 + (time.Delta.Hours / 24.0);
}
/// <summary>
/// Calculate the Chronological Modified Julian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Chronological Modified Julian Date</returns>
public static double CalculateChronologicalModifiedJulianDate(double julianDate)
{
TimeZone zone = TimeZone.CurrentTimeZone;
DaylightTime time = zone.GetDaylightChanges(year: DateTime.Today.Year);
return julianDate - doubleModifiedJulianDateCoefficient + 0.5 + (time.Delta.Hours / 24.0);
}
/// <summary>
/// Calculate the Lilian Date
/// </summary>
/// <returns>Lilian Date</returns>
public static double CalculateLilianDate() => Math.Floor(d: CalculateJulianDate() - doubleLilianDateCoefficient);
/// <summary>
/// Calculate the Lilian Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Lilian Date</returns>
public static double CalculateLilianDate(DateTime date) => Math.Floor(d: CalculateJulianDate(date: date) - doubleLilianDateCoefficient);
/// <summary>
/// Calculate the Lilian Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Lilian Date</returns>
public static double CalculateLilianDate(double julianDate) => Math.Floor(d: julianDate - doubleLilianDateCoefficient);
/// <summary>
/// Calculate the Rata Die
/// </summary>
/// <returns>Rata Die</returns>
public static double CalculateRataDie() => Math.Floor(d: CalculateJulianDate() - doubleRataDieCoefficient);
/// <summary>
/// Calculate the Rata Die from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Rata Die</returns>
public static double CalculateRataDie(DateTime date) => Math.Floor(d: CalculateJulianDate(date: date) - doubleRataDieCoefficient);
/// <summary>
/// Calculate the Rata Die from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Rata Die</returns>
public static double CalculateRataDie(double julianDate) => Math.Floor(d: julianDate - doubleRataDieCoefficient);
/// <summary>
/// Calculate the Mars Sol Date
/// </summary>
/// <returns>Mars Sol Date</returns>
public static double CalculateMarsSolDate() => (CalculateJulianDate() - doubleMarsSolDateCoefficient) / doubleRatioRotationAxisEarthMars;
/// <summary>
/// Calculate the Mars Sol Date from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Mars Sol Date</returns>
public static double CalculateMarsSolDate(DateTime date) => (CalculateJulianDate(date: date) - doubleMarsSolDateCoefficient) / doubleRatioRotationAxisEarthMars;
/// <summary>
/// Calculate the Mars Sol Date from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Mars Sol Date</returns>
public static double CalculateMarsSolDate(double julianDate) => (julianDate - doubleMarsSolDateCoefficient) / doubleRatioRotationAxisEarthMars;
/// <summary>
/// Calculate the Unix Time
/// </summary>
/// <returns>Unix Time</returns>
public static double CalculateUnixTime() => (CalculateJulianDate() - doubleUnixtimeCoefficient) * secondsOfDay;
/// <summary>
/// Calculate the Unix Time from the date
/// </summary>
/// <param name="date">date</param>
/// <returns>Unix Time</returns>
public static double CalculateUnixTime(DateTime date) => (CalculateJulianDate(date: date) - doubleUnixtimeCoefficient) * secondsOfDay;
/// <summary>
/// Calculate the Unix Time from the Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Unix Time</returns>
public static double CalculateUnixTime(double julianDate) => (julianDate - doubleUnixtimeCoefficient) * secondsOfDay;
#endregion
#region JD Converters
/// <summary>
/// Convert Julian Date to civil calendar
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>civil calendar</returns>
public static DateTime ConvertJulianDateToCivilCalendar(double julianDate)
{
double j = julianDate;
double intgr = Math.Floor(d: j);
double frac = j - intgr;
const double gregjd = 2299160.5;
double j1;
if (j >= gregjd)
{
double tmp = Math.Floor(d: (intgr - 1867216.0 - 0.25) / 36524.25);
j1 = intgr + 1 + tmp - Math.Floor(d: 0.25 * tmp);
}
else
{
j1 = intgr;
}
double df = frac + 0.5;
if (df >= 1.0)
{
df--;
++j1;
}
double j2 = j1 + 1524.0;
double j3 = Math.Floor(d: 6680.0 + ((j2 - 2439870.0 - 122.1) / 365.25));
double j4 = Math.Floor(d: j3 * 365.25);
double j5 = Math.Floor(d: (j2 - j4) / 30.6001);
double d = Math.Floor(d: j2 - j4 - Math.Floor(d: j5 * 30.6001));
double m = Math.Floor(d: j5 - 1.0);
if (m > 12)
{
m -= 12;
}
double y = Math.Floor(d: j3 - 4715.0);
if (m > 2)
{
--y;
}
if (y <= 0)
{
--y;
}
double d1 = df * 24.0;
double hr = Math.Floor(d: d1);
double mn = Math.Floor(d: ((df * 24.0) - hr) * 60.0);
double f = ((((df * 24.0) - hr) * 60.0) - mn) * 60.0;
double sc = Math.Floor(d: f);
f -= sc;
if (f > 0.5)
{
++sc;
}
if (sc == 60)
{
sc = 0;
++mn;
}
if (mn == 60)
{
mn = 0;
++hr;
}
if (hr == 24)
{
hr = 0;
++d;
}
/*if (y < 0)
{
}
else
{
}*/
return new DateTime(
year: (int)y,
month: (int)m,
day: (int)d,
hour: (int)hr,
minute: (int)mn,
second: (int)sc);
}
/// <summary>
/// Convert the Julian Date to the Modified Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Modified Julian Date</returns>
public static double ConvertJulianDateToModifiedJulianDate(double julianDate) => julianDate -
doubleModifiedJulianDateCoefficient;
/// <summary>
/// Convert the Modified Julian Date to the Julian Date
/// </summary>
/// <param name="julianModifiedDate">Modified Julian Date</param>
/// <returns>Julian Date</returns>
public static double ConvertModifiedJulianDateToJulianDate(double julianModifiedDate) => julianModifiedDate +
doubleModifiedJulianDateCoefficient;
/// <summary>
/// Convert the Julian Date to the Reduced Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Reduced Julian Date</returns>
public static double ConvertJulianDateToReducedJulianDate(double julianDate) => julianDate -
doubleReducedJulianDateCoefficient;
/// <summary>
/// Convert the Julian Date to the Truncated Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Truncated Julian Date</returns>
public static double ConvertJulianDateToTruncatedJulianDate(double julianDate) => julianDate -
doubleTruncatedJulianDateCoefficient;
/// <summary>
/// Convert the Julian Date to the Dublin Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Dublin Julian Date</returns>
public static double ConvertJulianDateToDublinJulianDate(double julianDate) => julianDate -
doubleDublinJulianDateCoefficient;
/// <summary>
/// Convert the Julian Date the CNES Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>CNES Julian Date</returns>
public static double ConvertJulianDateToCnesJulianDate(double julianDate) => julianDate -
doubleCnesJulianDateCoefficient;
/// <summary>
/// Convert the Julian Date to the CCSDS Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>CCSDS Julian Date</returns>
public static double ConvertJulianDateToCcsdsJulianDate(double julianDate) => julianDate -
doubleCcsdsJulianDateCoefficient;
/// <summary>
/// Convert the Julian Date to the LOP Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>LOP Julian Date</returns>
public static double ConvertJulianDateToLopJulianDate(double julianDate) => julianDate -
doubleLopJulianDateCoefficient;
/// <summary>
/// Convert the Julian Date to the Millennium Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns></returns>
public static double ConvertJulianDateToMillenniumJulianDate(double julianDate) => julianDate -
doubleMillenniumJulianDateCoefficient;
/// <summary>
/// Convert the Julian Date to the Chronological Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Chronological Julian Date</returns>
public static double ConvertJulianDateToChronologicalJulianDate(double julianDate) => CalculateChronologicalJulianDate(
julianDate: julianDate);
/// <summary>
/// Convert the Julian Date to the Chronological Modified Julian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Chronological Modified Julian Date</returns>
public static double ConvertJulianDateToChronologicalModifiedJulianDate(double julianDate) => CalculateChronologicalModifiedJulianDate(
julianDate: julianDate);
/// <summary>
/// Convert the Julian Date to the Lilian Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Lilian Date</returns>
public static double ConvertJulianDateToLilianDate(double julianDate) => julianDate -
doubleLilianDateCoefficient;
/// <summary>
/// Convert the Julian Date to the Rata Die
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Rata Die</returns>
public static double ConvertJulianDateToRataDie(double julianDate) => julianDate - doubleRataDieCoefficient;
/// <summary>
/// Convert the Julian Date to the Mars Sol Date
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Mars Sol Date</returns>
public static double ConvertJulianDateToMarsSolDate(double julianDate) => julianDate -
doubleMarsSolDateCoefficient;
/// <summary>
/// Convert the Julian Date to the Unix Time
/// </summary>
/// <param name="julianDate">Julian Date</param>
/// <returns>Unix Time</returns>
public static double ConvertJulianDateToUnixtime(double julianDate) => julianDate - doubleUnixtimeCoefficient;
#endregion
}
}