The reverse of this method is just str() and type() of the Python value.
Note that this does not support non-UTC offsets in ISO 8601-formatted
datetime strings, e.g., the -08:00 suffix in 2002-12-25 00:00:00-08:00.
It only supports -00:00 and +00:00 suffixes, which are UTC.
Args
type_
A Python class.
value_string
A string representation of the value of the property.
Returns
An instance of type.
Raises
ValueError if type_ is datetime and value_string has a timezone
offset.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-09-30 UTC."],[[["This function, `PropertyValueFromString`, converts a string representation of a property value into an instance of a specified Python class."],["The function's main alias is `google.appengine.api.datastore.datastore_types.PropertyValueFromString`."],["It requires two arguments: `type_`, which is a Python class, and `value_string`, which is the string representation of the property's value."],["The function is limited in its support for datetime strings, only accepting UTC time zone offsets."],["It will throw a `ValueError` if attempting to convert a string with a non UTC timezone into a datetime class."]]],[]]