LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

gregorian calendar to solar calendar converter

hi I want to use my PC date and time in my vi but it is in Gregorian system and i have to convert it to solar system but i found this conversion has some especial leap days, beside each 4 years leap year we have another leap years for that float number for example each n year leap years change to 5 years instead of 4 years! have any of you a reliable vi for this conversion? regards
0 Kudos
Message 1 of 7
(4,092 Views)

Why does this sound like a homework problem?

 

I'm also not aware of a "solar system" calendar. How does it work on Jupiter?

0 Kudos
Message 2 of 7
(4,087 Views)

@12321254 wrote:
 beside each 4 years leap year we have another leap years for that float number for example each n year leap years change to 5 years instead of 4 years! have any of you a reliable vi for this conversion? regards


I've never heard of that one before.  Can you provide a reference talking about a 5 year interval?  Are you talking about that century years are not leap years unless they are divisible by 400?  (e.g. 2000 = leap year, 1900 <> leap year)

0 Kudos
Message 3 of 7
(4,078 Views)
hi solar years are like Gregorian years on Jupiter but the start and it's corrections are different for example in Gregorian years 2012 is a leap year i mean the 4th year of each 4 year is leap year but in hijri shamsi (Persian calendar) 3rd year is leap year Dear Ravens Fan that's true (e.g. 2000 = leap year, 1900 <> leap year) is Gregorian correction but in solar correction there is another method all in all in need a Persian calender converter
0 Kudos
Message 4 of 7
(4,059 Views)

i found persian calendar correction graph

Jalaalileap.gif

every 33 years it correct itself Gregorian calendar is different

800px-Gregoriancalendarleap_solstice.svg.png

 

 

0 Kudos
Message 5 of 7
(4,053 Views)

You are probably going to have to research the the algorithm and program it yourself.  The rest of the world uses a normal calendar so all time and date conversions are based on that.

0 Kudos
Message 6 of 7
(4,036 Views)

Your images seem to come from this wikipedia entry: http://en.wikipedia.org/wiki/Iranian_calendars

 

At the bottom of this entry is an external programming link to the Microsoft MSDN library. There is a .NET function that you might be able to use instead of coding the solution yourself.

 

http://msdn.microsoft.com/en-us/library/system.globalization.persiancalendar.aspx

 

There is also a link to a JavaScript example

 

http://farhadi.ir/projects/jalalijscalendar/


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 7 of 7
(4,028 Views)