[Developers] query /type/datetime properties
Augusto Callejas
acallejas at appliedminds.com
Mon Jun 23 23:29:59 UTC 2008
hi-
i'm querying for properties of a certain type that have
changed after a specified timestamp. the query is below,
followed by the result:
=======
[
{
"/common/topic/alias" : [
{
"lang" : "/lang/en",
"link" : {
"timestamp" : null,
"timestamp>=" : "2008-06-23T16:12:55"
},
"optional" : true,
"value" : null
}
],
"/type/object/guid" : null,
"/type/object/name" : [
{
"lang" : "/lang/en",
"link" : {
"timestamp" : null,
"timestamp>=" : "2008-06-23T16:12:55"
},
"optional" : true,
"value" : null
}
],
"timestamp" : null,
"type" : "/user/augusto/default_domain/type2"
}
]
=======
[
{
"/common/topic/alias" : [],
"/type/object/guid" : "#9202a8c04000641f80000000086e0ed9",
"/type/object/name" : [
{
"lang" : "/lang/en",
"link" : {
"timestamp" : "2008-06-23T21:04:43.0001Z"
},
"value" : "apple"
}
],
"timestamp" : "2008-06-23T21:04:43.0000Z",
"type" : "/user/augusto/default_domain/type2"
},
{
"/common/topic/alias" : [],
"/type/object/guid" : "#9202a8c04000641f80000000086e46eb",
"/type/object/name" : [
{
"lang" : "/lang/en",
"link" : {
"timestamp" : "2008-06-23T23:13:31.0001Z"
},
"value" : "banana"
}
],
"timestamp" : "2008-06-23T23:13:31.0000Z",
"type" : "/user/augusto/default_domain/type2"
}
]
=======
from the documentation:
http://www.freebase.com/view/guid/9202a8c04000641f800000000544e143#id2610086
it says dates without timezone, like in my query "2008-06-23T16:12:55":
"If no timezone is specified, then then the /type/datetime value is assumed
to be a local time in an unknown timezone."
its confusing because when you say "local time" it implies the local
timezone, yet it says an unknown timezone. i thought my query's time
would default to the local timezone (-700 for me), but then the first
result above wouldn't pass the time constraint:
"2008-06-23T21:04:43.0001Z" >= "2008-06-23T16:12:55"
but if it was interpreting "2008-06-23T16:12:55"'s timezone as UTC, then
it would make sense.
basically, does "2008-06-23T16:12:55" default the timezone to UTC?
thanks,
augusto.
More information about the Developers
mailing list