You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK, but add an example of how to deal with decimal seconds: e.g., "2001-11-12T18:31:01.123Z"
Maybe the only way is
sub p {
my $s = $_[0];
$s=~s/(\.\d*)//;
return Time::Piece->strptime( $s, "%Y-%m-%dT%H:%M:%SZ" ) + $1;
}
Say if that is cool or not cool. Say something, anything.
Say if one should turn to Time::HiRes here, or indeed CPAN packages.
Say if forcibly adding non integer seconds as I have above, while indeed working,
might build up residues due to float arithmetic.
Say that although in C struct tm only has intergers, but perl's Time::tm is not as strict, etc.
The text was updated successfully, but these errors were encountered:
Many users will be scratching their heads about how to get e.g., 0.5 seconds parsed by Time::Piece.
Time::Piece says
OK, but add an example of how to deal with decimal seconds: e.g., "2001-11-12T18:31:01.123Z"
Maybe the only way is
Say if that is cool or not cool. Say something, anything.
Say if one should turn to Time::HiRes here, or indeed CPAN packages.
Say if forcibly adding non integer seconds as I have above, while indeed working,
might build up residues due to float arithmetic.
Say that although in C struct tm only has intergers, but perl's Time::tm is not as strict, etc.
The text was updated successfully, but these errors were encountered: