How to convert Date/Time to human readble

Questions about Cobian Backup 11 (Gravity)
Post Reply
XNeon
Posts: 1
Joined: 11 May 2024, 02:59

How to convert Date/Time to human readble

Post by XNeon »

I use Cobian Backup 11.
How to convert Date/Time in MainList.lst to human readble?
User avatar
cobian
Site Admin
Posts: 4817
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: How to convert Date/Time to human readble

Post by cobian »

I really don't remember now (that program is 12 years old now) but wasn't a DatetTime tool included with it under the Tools menu?
--
Luis Cobian
Cobian Backup's creator
User avatar
cobian
Site Admin
Posts: 4817
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: How to convert Date/Time to human readble

Post by cobian »

Yes, there is a date and time in the tools menu.
But I need to set up monitoring and for this I need to get data from configuration files.
Sorry, I pressed the wrong button and disapproved your reply without meaning it.

If I remember it correct the date abnd time is just a double decimal that stores a date and time as the number of days since the start of the day on December 30, 1899, which is the standard used in OLE automation. The integer part is the number of days, and the fractional part specifies the time of day.
--
Luis Cobian
Cobian Backup's creator
andreyhab
Posts: 1
Joined: 30 May 2024, 06:51

Re: How to convert Date/Time to human readble

Post by andreyhab »

VB.NET

Console.WriteLine(DateTime.FromOADate(BitConverter.Int64BitsToDouble(Convert.ToInt64("0100000011100110001100000100100001100101000010101001001011100001", 2))))

30.05.2024 6:17:45
Post Reply