toMs method

double toMs (
  1. String val
)

Convert a string representation fo time to the number of milliseconds

example:

MS.toMs('2 days'); // 172800000

Implementation

static double toMs(String val) {
  return _parse(val);
}