1 package CXGN
::TimeUtils
;
7 # Replace space with 'T' to follow ISO 8601 format
15 sub date_to_iso_timestamp
{
17 #get %Y-%B-%d to 2000-02-29T12:34:56Z
21 my $formatted_time = Time
::Piece
->strptime($str_date, '%Y-%B-%d');
22 $date = $formatted_time->datetime;
29 sub db_time_to_iso_utc
{
31 my $new_time = $db_time =~ s/ /T/r;