TDatime and UNIX time conversion slow


I’m trying to convert a normal text date and time to UNIX time. I do the following:

TDatime da; da.Set(2006,01,26,12,00,08) datetime = da.Convert();

It works, but it slows down my simple code a lot compared to NOT doing the conversion (via TDatime::Convert() ).

Can I just fill my timestamp branch with just the TDatime times without converting? Alternatively, is there a way to convert to UNIX time that is less CPU intensive and more direct than first converting to TDatime?

THANKS! :slight_smile:

As I do not know what you try to do, may be have a look at class TTimeStamp