Bring all disparate datetime handling into core helpers module. by dhermes · Pull Request #1051 · googleapis/google-cloud-python
added 7 commits
August 11, 2015 12:47Using a method to convert to microseconds (which handles both naive datetime objects and ones with timezones other than UTC) and then converts them to microseconds. All consumers then convert to the desired granularity.
Also making it require a float (or int) instead of bailing out for NoneType. Changing the use of the method in bigquery to not pass potentially null values and to multiply by 1000.0 (convert from millis to micros). Also updating micros -> datetime conversion in datastore to use the newly converted method.
label
Aug 11, 2015dhermes added a commit that referenced this pull request
Aug 12, 2015This was referenced
Aug 12, 2015parthea pushed a commit that referenced this pull request
Jun 8, 2025feat: add google/cloud/compute/v1beta (#1033) * build: implement matrix strategy for DIREGAPIC action * build: add alpha compute files * build: Include API channel in auto-generated PR * build: fix matrix specification * build: Have DIREGAPIC action use triggering ref or default branch * build: remove the field ScratchDisks The field was also removed purposefully in v1 * build: Add v1 proto for use as "previous proto" in conversion * build: allow all matrix jobs to complete even if some fail * build: fix location of fail-fast setting The original reference I used had it in the wrong place. Correct GitHub ref: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idstrategyfail-fast * build: Disable PHP and C# builds for alpha PHP just failed. Not clear what the issue is. C# has some known failures. One of them may be the use of 3 repeated fields. * build: Disable Ruby generation This was causing some errors, too. * build: fix version in Discovery file before further processing * build: jq is supposedly pre-installed in GitHub actions * feat: Move alpha to v1alpha in all paths * build: We do need to install jq * build: Try installing without sudo sudo is not found! * build: Fix regex "version" is the last field, so it has no trailing comma * build: Fix Go imports in BUILD * build: prepare for processing beta: copy files from alpha * build: update the beta file contents to refer to beta symbols * build: configure action to run for beta as well. * build: Have each channel use its own branch for the PR * Update syntax for matrix.version in branch name * add initial versions of alpha/beta discovery docs * Revert "add initial versions of alpha/beta discovery docs" This reverts commit 489a29cdc587ff4e10fc74765acbcf99ac34d496. * stage discovery docs * remove alpha * add compute.v1beta.json which is needed for kokoro presubmit * build: add python settings * import changes from PR 1035 * clean up * clean up * Remove redundant bazelisk build --------- Co-authored-by: Victor Chudnovsky <vchudnov@google.com> chore: minor formatting build(python): add service_yaml and rest_numeric_enums configurations (#1040) feat: Update Compute Engine v1beta API to revision 20250511 (#1041) feat: Update Compute Engine v1beta API to revision 20250601 (#1051) Source-Link: googleapis/googleapis@2fc3abe Source-Link: googleapis/googleapis@24cb982 Source-Link: googleapis/googleapis@1a22026 Source-Link: googleapis/googleapis@a72e939 Source-Link: googleapis/googleapis@9bc0840
parthea pushed a commit that referenced this pull request
Nov 26, 2025parthea pushed a commit that referenced this pull request
Mar 2, 2026… subscriber quickstart (#1051) Co-authored-by: mukund-ananthu <83691193+mukund-ananthu@users.noreply.github.com> Co-authored-by: Alex Hong <9397363+hongalex@users.noreply.github.com>
parthea pushed a commit that referenced this pull request
Mar 9, 2026…mplates/python_library/.kokoro (#1051) Source-Link: googleapis/synthtool@30bd01b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9bc5fa3b62b091f60614c08a7fb4fd1d3e1678e326f34dd66ce1eefb5dc3267b Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters