c# - Convert DateTime format to Matlab Date Serial Number format -


I want to be able to change the date (2012/12/31 10-21-17.617) to a decimal number. Takes (date serial number).

I have replaced the matlab date serial number in the datetime format ( yyy / mm / dd HH: mm: ss.fff ): < Pre> datetime conversion = new date time (1, 1, 1). Adidas (734139.045000000040). Different years (-1)

However, I would like to be able to do the opposite of the above, I know that from date to date, 0001/01/01 , where Matlab is for 0000/00/00 .

As long as I can not remember anything, a simple method would be the Timenstein timeline ()

An example of the code obtained from the arbitrary point in the matlab format to adjust the date time you are trying to convert, then adjust it with the offset

  Private Datetime Metlabetnet (Two Days) {Return New DateTime (1, 1, 1). Addition (days) Add the year (-1); } Private Double Netomalabal (Datetime DT) {Time Span TS = DT - New Datetime (); Returns TS Consultation + 365; }    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -