473,385 Members | 1,912 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 5356
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: goochey | last post by:
I'm trying to convert a Julian Date (Format "4365") into an actual calendar date in Visual Basic, can anyone help me out with this.
3
by: Kevin Baker | last post by:
Hi Everyone, Need to find code to convert short date (1/20/2003) into Julian Date 3020. The "3" is last digit of year and 020 is the number of days since January 1st. Thanks, Kevin
9
by: Reggie | last post by:
Hi and TIA! I have a field that I want to convert from Julian to a short date. I've tried several procedures, but can't come up with the right solution. What I'm trying to do is convert 4023...
3
by: Chris Davoli | last post by:
Is there a class that converts from Gregorian date to TRUE Julian Date in ..NET? Any VB.NET examples available? ie; The Julian date is calculated by the number of days since January 1, 4713 BC....
1
by: Sam | last post by:
How do I convert Julian Date to Calendar Date in ASP.Net 1.1 based on following guideline found at Internet? To convert Julian date to Gregorian date: double JD = 2299160.5; double Z =...
2
by: No Spam | last post by:
Dear Access 2003 Users, I have been given an Excel 2003 spreadsheet with thousands of records, and I need to bring it into Access 2003. Does anyone know an Access formula that can convert these...
14
by: pdavis06 | last post by:
I know that there is a thread about this, but I was unable to add to it; I just joined. The problem is that I do not want to change the date format for the entire database output, merely for a header...
4
by: =?Utf-8?B?VmljdG9y?= | last post by:
Hi, How can I conver Julian date to a 'standard' DateTime? So 2449810 will be converted to 1995/4/2. Thanks.
1
by: smdmca | last post by:
I have Julian date, I want to convert it into date. Is there any function in MySql to convert Julian date to date eg- Julian Date- 2455116 Date - Oct - 12, 2009
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.