Make the actual_time feature usable

fix bug computing timestamps
expose a way to set the type
switch to os:timestamp()