Wavescaling Date and Time

Good day,

I have numbers in a wave which I scaled with Date & Time and a Delta of 0.1 Seconds. 

The scaling starts at 07.08.2025 10:50:00.0 and ends 07.08.2025 11:52:00.6.

The values above I know, because I have written them down on a paper. 

How can I get the start and end date and time of this wave through IGOR?

When I enter wavestats wave1 it shows me  V_minloc= 3.83741e+09; V_maxloc= 3.83741e+09. 

These are the start end end seconds since 1904. However, the values are rounded and in seconds. But I would like to have Date and Time with fractions of seconds.

Thanks a lot for your help.

You need to use Secs2Date() and Secs2Time() to covert from seconds to a formatted date/time string. Here is a little test which should give you an idea (note that the function Time2Sec_Conversion() is only necessary for this demonstration):

Function time_test(string mytimeStr)
    variable timeVal = Time2Sec_Conversion(mytimeStr)
    Print/D "Time in seconds:", timeVal
    Print "Date / time:", Secs2Date(timeVal,0) + " " + Secs2Time(timeVal,3,1)
End
 
static Function Time2Sec_Conversion(string str)
    variable year, month, day, hh, mm, ss
    sscanf str, "%d.%d.%d%*[ ]%d:%d:%f", day, month, year, hh, mm, ss
    return v_flag == 6 ? Date2Secs(year, month, day) + ss + 60*mm + 60*60*hh : NaN
End

Which gives:

•time_test("07.08.2025 11:52:00.6")
  Time in seconds:  3837412320.6
  Date / time:  2025/08/07 11:52:00.6