@tata_g I use Linux, so not sure if this changes on Windows, but get_time (-TimeStamp) gives me the number of seconds since the start of 1970.
?- get_time(Now).
Now = 1575792862.8043513.
Converting that to something human readable requires stamp_date_time (+TimeStamp, -DateTime, +TimeZone)
?- get_time(Now),
stamp_date_time(Now,
date(Year, Month, Day, Hour, Minute, Second,
UTCOffset, TimeZone, Y),
'UTC').
Now = 1575792887.7244942,
Year = 2019,
Month = 12,
Day = Hour, Hour = 8,
Minute = 14,
Second = 47.724494218,
UTCOffset = 0,
TimeZone = 'UTC',
Y = (-).
If you are getting all zeroes, it could be the hardware clock on your computer isn’t set correctly. What does Windows say the time is?