469,926 Members | 1,492 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

How to convert normal date to Julian date upto milliseconds precision

Hi,

I have to draw a real time chart in which I have several entries at the same
second (i.e. HH:MM:SS:Milleconds)
The charting component only takes julian date for drawing the dates.

I am not able to convert the normal C# DateTime to juliandate which takes
milliseconds along with hour,minute,second. All of the julian date
implementations only take date + HH:MM:SS (upto second not milliseconds).
Please help, how can I include the milliseconds precision.

Regards,
Rajat.
Mar 17 '06 #1
2 5049
> Hi,

I have to draw a real time chart in which I have several entries at the same
second (i.e. HH:MM:SS:Milleconds)
The charting component only takes julian date for drawing the dates.

I am not able to convert the normal C# DateTime to juliandate which takes
milliseconds along with hour,minute,second. All of the julian date
implementations only take date + HH:MM:SS (upto second not milliseconds).
Please help, how can I include the milliseconds precision.

Regards,
Rajat.


The hard work (convertings days and months) has already been done
when you get that "seconds julian date". I suppose the result is
something like "number of seconds since <startdate>" where <startdate>
is either a fixed date or the start of the current year.
If you multiply by 1000 (to get "milliseconds since <>") and add the
current millisecond value, wouldn't you get the value you need?

Hans Kesting
Mar 17 '06 #2
Thank you Hans, Sorry for replying late. I will follow ur idea. In case of
any issue, I'll revert back to the post.

Thanks again.

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:mn***********************@spamgourmet.com...
Hi,

I have to draw a real time chart in which I have several entries at the same second (i.e. HH:MM:SS:Milleconds)
The charting component only takes julian date for drawing the dates.

I am not able to convert the normal C# DateTime to juliandate which takes milliseconds along with hour,minute,second. All of the julian date
implementations only take date + HH:MM:SS (upto second not milliseconds). Please help, how can I include the milliseconds precision.

Regards,
Rajat.


The hard work (convertings days and months) has already been done
when you get that "seconds julian date". I suppose the result is
something like "number of seconds since <startdate>" where <startdate>
is either a fixed date or the start of the current year.
If you multiply by 1000 (to get "milliseconds since <>") and add the
current millisecond value, wouldn't you get the value you need?

Hans Kesting

Mar 21 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kevin Baker | last post: by
9 posts views Thread by Reggie | last post: by
3 posts views Thread by Chris Davoli | last post: by
1 post views Thread by Sam | last post: by
4 posts views Thread by =?Utf-8?B?VmljdG9y?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.