René's URL Explorer Experiment


Title: Saving datetime objects to Datastore - no documentation? · Issue #1200 · googleapis/google-cloud-python · GitHub

Open Graph Title: Saving datetime objects to Datastore - no documentation? · Issue #1200 · googleapis/google-cloud-python

X Title: Saving datetime objects to Datastore - no documentation? · Issue #1200 · googleapis/google-cloud-python

Description: Can the documentation be updated to show the right way to save timestamps to datastore? It took some trial and error to find the right way to do it. Or is this just something obvious that I missed? Example: import time import datetime cl...

Open Graph Description: Can the documentation be updated to show the right way to save timestamps to datastore? It took some trial and error to find the right way to do it. Or is this just something obvious that I missed?...

X Description: Can the documentation be updated to show the right way to save timestamps to datastore? It took some trial and error to find the right way to do it. Or is this just something obvious that I missed?...

Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/1200

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Saving datetime objects to Datastore - no documentation?","articleBody":"Can the documentation be updated to show the right way to save timestamps to datastore? It took some trial and error to find the right way to do it.\n\nOr is this just something obvious that I missed?\n\nExample:\n\n``` python\nimport time\nimport datetime\nclient = datastore.Client()\n\nentity = datastore.Entity( key = client.key(\"Foo\") )\nentity[\"time\"] = time.gmtime()\nclient.put( entity )\n#does not work\n\nentity = datastore.Entity( key = client.key(\"Foo\") )\nentity[\"time\"] = datetime.datetime.now().date()\nclient.put( entity )\n#does not work\n\nentity = datastore.Entity( key = client.key(\"Foo\") )\nentity[\"time\"] = datetime.datetime.now()\nclient.put( entity )\n#works\n```\n","author":{"url":"https://github.com/thesandlord","@type":"Person","name":"thesandlord"},"datePublished":"2015-10-21T20:27:02Z","url":"https://github.com/googleapis/google-cloud-python/issues/1200"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:246cb170-3958-4e5e-b49a-0aebb1ab0efa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id860E:970F0:3F006E:5936CF:6AFE05AE
html-safe-nonce581435f5d82deb9897d9bf81690812b39792a4461e1680b652ebadb134cbe8d8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjBFOjk3MEYwOjNGMDA2RTo1OTM2Q0Y6NkFGRTA1QUUiLCJ2aXNpdG9yX2lkIjoiNjk2NDU2MTc1MTcxMDc2MjQxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac81d13377f7261f36cae5d558e1a081ed12d62909ebd15377de715370de1ce1ff
hovercard-subject-tagissue:112672224
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/1200/issue_layout
twitter:imagehttps://opengraph.githubassets.com/56a5c0b90bb12e274f40488aca2ec2538900388729f4bbf57d294c2817c8814a/googleapis/google-cloud-python/issues/1200
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/56a5c0b90bb12e274f40488aca2ec2538900388729f4bbf57d294c2817c8814a/googleapis/google-cloud-python/issues/1200
og:image:altCan the documentation be updated to show the right way to save timestamps to datastore? It took some trial and error to find the right way to do it. Or is this just something obvious that I missed?...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethesandlord
hostnamegithub.com
expected-hostnamegithub.com
None86d46ece7c3d9b0562692f81a135cb55ad6a1c82c93ab1ac874d2f1b46b28958
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id16316451
octolytics-dimension-repository_nwogoogleapis/google-cloud-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id16316451
octolytics-dimension-repository_network_root_nwogoogleapis/google-cloud-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5c18e6799976b7bc2f21178024289bb98edbcc85
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/google-cloud-python/issues/1200#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F1200
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-cloud-python%2Fissues%2F1200
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fgoogle-cloud-python
Reloadhttps://github.com/googleapis/google-cloud-python/issues/1200
Reloadhttps://github.com/googleapis/google-cloud-python/issues/1200
Reloadhttps://github.com/googleapis/google-cloud-python/issues/1200
googleapishttps://github.com/googleapis
google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
Codehttps://github.com/googleapis/google-cloud-python
Issues448 (448)https://github.com/googleapis/google-cloud-python/issues
Pull requests199 (199)https://github.com/googleapis/google-cloud-python/pulls
Discussionshttps://github.com/googleapis/google-cloud-python/discussions
Actionshttps://github.com/googleapis/google-cloud-python/actions
Projectshttps://github.com/googleapis/google-cloud-python/projects
Security and qualityhttps://github.com/googleapis/google-cloud-python/security
Insightshttps://github.com/googleapis/google-cloud-python/insights
https://github.com/googleapis/google-cloud-python
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/1200
New issuehttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/1200
Saving datetime objects to Datastore - no documentation?https://github.com/googleapis/google-cloud-python/issues/1200#top
https://github.com/lukesneeringer
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
https://github.com/thesandlord
thesandlordhttps://github.com/thesandlord
on Oct 21, 2015https://github.com/googleapis/google-cloud-python/issues/1200#issue-112672224
https://github.com/tseaver
tseaverhttps://github.com/tseaver
on Oct 21, 2015https://github.com/googleapis/google-cloud-python/issues/1200#issuecomment-150020226
entity docshttps://googlecloudplatform.github.io/gcloud-python/stable/datastore-entities.html
https://github.com/igama
igamahttps://github.com/igama
on Oct 21, 2015https://github.com/googleapis/google-cloud-python/issues/1200#issuecomment-150027380
http://console.developers.google.comhttp://console.developers.google.com
https://github.com/thesandlord
thesandlordhttps://github.com/thesandlord
on Oct 21, 2015https://github.com/googleapis/google-cloud-python/issues/1200#issuecomment-150035018
@tseaverhttps://github.com/tseaver
@igamahttps://github.com/igama
https://github.com/igama
igamahttps://github.com/igama
on Oct 21, 2015https://github.com/googleapis/google-cloud-python/issues/1200#issuecomment-150041186
@thesandlordhttps://github.com/thesandlord
dhermeshttps://github.com/dhermes
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
docshttps://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22docs%22
on Dec 31, 2015https://github.com/googleapis/google-cloud-python/issues/1200#event-503156783
lukesneeringerhttps://github.com/lukesneeringer
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
on Apr 19, 2017https://github.com/googleapis/google-cloud-python/issues/1200#event-1049104749
https://github.com/patitonav
patitonavhttps://github.com/patitonav
on May 17, 2017https://github.com/googleapis/google-cloud-python/issues/1200#issuecomment-302121092
https://github.com/dhermes
dhermeshttps://github.com/dhermes
on May 17, 2017https://github.com/googleapis/google-cloud-python/issues/1200#issuecomment-302124189
@patitonavhttps://github.com/patitonav
underlying valuehttps://github.com/googleapis/googleapis/blob/5c6df0cd18c6a429eab739fb711c27f6e1393366/google/datastore/v1/entity.proto#L138-L141
Timestamphttps://github.com/google/protobuf/blob/b28617b813b4ba4845164a1f5190f762f5b91832/src/google/protobuf/timestamp.proto#L121-L133
assumeshttps://github.com/GoogleCloudPlatform/google-cloud-python/blob/5b6eb55e016422b36dfe7d6bbcf765dff18389a4/core/google/cloud/_helpers.py#L219-L220
viahttps://github.com/GoogleCloudPlatform/google-cloud-python/blob/5b6eb55e016422b36dfe7d6bbcf765dff18389a4/datastore/google/cloud/datastore/helpers.py#L303
https://github.com/patitonav
patitonavhttps://github.com/patitonav
on May 17, 2017https://github.com/googleapis/google-cloud-python/issues/1200#issuecomment-302133131
https://github.com/lukesneeringer
lukesneeringerhttps://github.com/lukesneeringer
on Aug 11, 2017https://github.com/googleapis/google-cloud-python/issues/1200#issuecomment-321913058
lukesneeringerhttps://github.com/lukesneeringer
completedhttps://github.com/googleapis/google-cloud-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 11, 2017https://github.com/googleapis/google-cloud-python/issues/1200#event-1203249372
JustinBeckwithhttps://github.com/JustinBeckwith
lukesneeringerhttps://github.com/lukesneeringer
on Feb 1, 2021https://github.com/googleapis/google-cloud-python/issues/1200#event-4275208643
partheahttps://github.com/parthea
on Nov 24, 2025https://github.com/googleapis/google-cloud-python/issues/1200#event-21150399749
fix: updates _get_transitive_schema_fields and tests (#1200)https://github.com/googleapis/google-cloud-python/commit/740bb63a91ec52de8e669f0c90cdc2244cbcf88d
#1200https://github.com/googleapis/google-cloud-python/issues/1200
740bb63https://github.com/googleapis/google-cloud-python/commit/740bb63a91ec52de8e669f0c90cdc2244cbcf88d
build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/g…https://github.com/googleapis/google-cloud-python/commit/5e67599d073272bd13c7a2ddce7a6ad7b30f7b0c
5e67599https://github.com/googleapis/google-cloud-python/commit/5e67599d073272bd13c7a2ddce7a6ad7b30f7b0c
partheahttps://github.com/parthea
on Mar 6, 2026https://github.com/googleapis/google-cloud-python/issues/1200#event-23339737404
chore(deps): update all dependencies (#1200)https://github.com/googleapis/google-cloud-python/commit/4c929f55ffa4f67c236b9c32fafafc9bc9f23d7c
#1200https://github.com/googleapis/google-cloud-python/issues/1200
4c929f5https://github.com/googleapis/google-cloud-python/commit/4c929f55ffa4f67c236b9c32fafafc9bc9f23d7c
partheahttps://github.com/parthea
on Sep 8, 2026https://github.com/googleapis/google-cloud-python/issues/1200#event-30787941409
docs: migrate code from googleapis/python-bigquery (#18303)https://github.com/googleapis/google-cloud-python/commit/23f9a742ad842a7c133bd167676e195b6cb78f95
#18303https://github.com/googleapis/google-cloud-python/pull/18303
23f9a74https://github.com/googleapis/google-cloud-python/commit/23f9a742ad842a7c133bd167676e195b6cb78f95
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/google-cloud-python/issues/1200
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/google-cloud-python/issues/1200
lukesneeringerhttps://github.com/lukesneeringer
api: datastoreIssues related to the Datastore API.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22api%3A%20datastore%22
priority: p2Moderately-important priority. Fix may not be included in next release.https://github.com/googleapis/google-cloud-python/issues?q=state%3Aopen%20label%3A%22priority%3A%20p2%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.