How to convert normal date to Julian date upto milliseconds precision

R

Rajat

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.
 
H

Hans Kesting

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
 
R

Rajat

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top