isDateTime static method

bool isDateTime(
  1. String s
)

Checks if string is DateTime (UTC or Iso8601). 检查字符串是否为时间

Implementation

static bool isDateTime(String s) =>
    RegexUtils.hasMatch(s, RegexConstants.basicDateTime);