WeBWorK::Utils - useful utilities used by other WeBWorK modules.
Traverses the directory tree rooted at $dir, returning a list of files, named pipes, and sockets matching the regular expression $match_qr. Directories matching the regular expression $prune_qr are not visited.
$match_full and $prune_full are boolean values that indicate whether $match_qr and $prune_qr, respectively, should be applied to the bare directory entry (false) or to the path to the directory entry relative to $dir.
@matches is a list of paths relative to $dir.
Parses $string as a datetime. If $display_tz is given, $string is assumed to be in that timezone. Otherwise, the server's timezone is used. The result, $dateTime, is an integer UNIX datetime (epoch) in the server's timezone.
Formats the UNIX datetime $dateTime in the standard WeBWorK datetime format. $dateTime is assumed to be in the server's time zone. If $display_tz is given, the datetime is converted from the server's timezone to the timezone specified.
textDateTime($string_or_dateTime)
Accepts a UNIX datetime or a formatted string, returns a formatted string.
intDateTime($string_or_dateTime)
Accepts a UNIX datetime or a formatted string, returns a UNIX datetime.