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 ( However, I would like to be able to do the opposite of the above, I know that from date to date, 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 yyy / mm / dd HH: mm: ss.fff ): < Pre>
datetime conversion = new date time (1, 1, 1). Adidas (734139.045000000040). Different years (-1)
0001/01/01 , where Matlab is for
0000/00/00 .
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
Post a Comment