I got a simple Julian Date Calculator with the following code:
DateTime date = DateTime.UtcNow;
int month = date.Month > 2 ? date.Month : date.Month + 12;
int year = month > 2 ? date.Year : date.Year - 1;
int hour = date.Hour;
int minute = date.Minute;
int second = date.Second;
int millisecond = date.Millisecond;
double day = date.Day + hour / 24.0 + minute / 1440.0 + (second + millisecond * 1000) / 86400.0;
int isJulianCalendar = isJulianDate(year, month, date.Day) ? 0 : 2 - year + year / 100 / 4;
When I run the program, it returns a lower value than the previous one (e.g if I run now, it shows a value, but if I run in a couple of minutes, it shows another value).
From the .pdf I copied the expression, it says that the formula use UT time. Is there any relevant difference from the UTC time?