Hi
I have a date 2000-10-31 15:33:15.7556.
I want to convert this date to julian date in C.
Please help..
Printable View
Hi
I have a date 2000-10-31 15:33:15.7556.
I want to convert this date to julian date in C.
Please help..
Julian day - Wikipedia, the free encyclopedia
Now read this
Announcements - C Programming
> I have a date 2000-10-31 15:33:15.7556.
OK, so at least post some code which results in a number of variables where say
int year;
ends up with the value 2000
int month;
ends up with the value 10
and so on.
Don't just dump your assignment and expect a code answer.
Conversion formula
So where is your problem (except using basic search skills)?
Bye, Andreas
Sorry guys for less information about the problem I am facing.
My code was using CT library to connect to Sybase database. Now database is migrated to MS Sql Server and I am using unixODBC to connect to the MS Sql Server database.
The datatime structure in CT library is different from its corresponding datetime structure in unixODBC.
e.g
I am trying to achive conversion between them. I am only changing data layer. So my flow will beasCode:CT-lib structure
struct date
{
int days;
int time;
}
odbc datetime structure
struct date
{
int year;
int month;
int day;
.
.
}
CT-Lib datetime structure -> odbc Data layer (This handles datetime structure conversion) -> Ms Sql Server
this happens vice-versa too.
Note: I am .NET guy. I Never worked on C programming.
> Note: I am .NET guy. I Never worked on C programming.
So what is your exact question anyway?
I mean, you could have scrolled down to Gregorian_calendar_from_Julian_day_number and have an algorithm.
Mathematical operators are the same in pretty much any programming language, so even half a day with a C book should give you enough syntax to at least ATTEMPT some kind of code.