timestamp static method

String timestamp()

Returns a String Datetime of the current time as this format 13:37:09:480

Implementation

static String timestamp()
{
  return DateTime.now().hour.toString().padLeft(2,'0') + ':' + DateTime.now().minute.toString().padLeft(2,'0') + ":" + DateTime.now().second.toString().padLeft(2,'0') + "." + DateTime.now().millisecond.toString().padLeft(3,'0');
}