Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dwsupplee
Copy link
Contributor

Closes: #648

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 25, 2017
$value = preg_replace('/\.(\d{1,9})Z/', '.000000Z', $value);
$dt = \DateTimeImmutable::createFromFormat('Y-m-d\TH:i:s.u\Z', $value);
$nanos = (isset($matches[1])) ? $matches[1] : 0;
$nanos = (isset($matches[1])) ? str_pad($matches[1], 9, '0') : 0;

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@jdpedrie jdpedrie mentioned this pull request Aug 25, 2017
@dwsupplee dwsupplee merged commit a60ef7d into googleapis:master Aug 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: core cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants