added function getCurrentTimestamp()