add format, getS and getMs methods to event timestamp