[Developers] query /type/datetime properties
Augusto Callejas
acallejas at appliedminds.com
Mon Aug 25 17:25:35 UTC 2008
hi, i sent this out a while ago, but didn't get a response.
any ideas on datetimes?
thanks,
augusto.
------ Forwarded Message
From: Augusto Callejas <acallejas at appliedminds.com>
Reply-To: "For discussions about MQL, Freebase API and apps built on
Freebase" <developers at freebase.com>
Date: Mon, 23 Jun 2008 16:29:59 -0700
To: "For discussions about MQL, Freebase API and apps built on Freebase"
<developers at freebase.com>
Conversation: query /type/datetime properties
Subject: [Developers] query /type/datetime properties
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.
_______________________________________________
Developers mailing list
Developers at freebase.com
http://lists.freebase.com/mailman/listinfo/developers
------ End of Forwarded Message
More information about the Developers
mailing list