[Developers] invalid datetime value?

Augusto Callejas acallejas at appliedminds.com
Fri Aug 8 00:00:55 UTC 2008


it doesn't like the "Z" either

====
{
  "/type/reflect/any_value" : [
    {
      "link" : {
        "master_property" : null,
        "operation" : null,
        "timestamp" : null,
        "timestamp>=" : "2008-08-07T16:08:16.000000075Z",
        "valid" : null
      },
      "sort" : "link.timestamp",
      "value" : null
    }
  ],
  "guid" : null,
  "type" : [],
  "type|=" : [
    "/user/augusto/default_domain/type1"
  ]
}
====

====
{
  "code" : "/api/status/ok",
  "q1" : {
    "code" : "/api/status/error",
    "messages" : [
      {
        "code" : "/api/status/error/mql/type",
        "info" : {
          "expected_type" : "/type/datetime",
          "value" : "2008-08-07T16:08:16.000000075Z",
          "value_type" : "string"
        },
        "message" : "2008-08-07T16:08:16.000000075Z is a JSON string, but
the expected type is /type/datetime"
      }
    ]
  },
  "status" : "200 OK"
}
====


On 8/7/08 4:48 PM, "Tim Kientzle" <tim at metaweb.com> wrote:

> Try adding 'Z' to your timestamp (to specify UTC).
> 
> 
> On Aug 7, 2008, at 4:44 PM, Augusto Callejas wrote:
> 
>> hi-
>> 
>> i tried this query but it complained about my datetime value.
>> according to documentation:
>> 
>> ----
>> http://www.freebase.com/view/guid/9202a8c04000641f800000000544e143#id261008
>> 6
>> 
>> Seconds must be specified with two digits, but may also include a
>> decimal
>> point and a fractional second. Metaweb allows up to 9 digits after the
>> decimal point.
>> ----
>> 
>> any ideas?
>> 
>> thanks,
>> augusto.
>> 
>> ===
>> {
>>  "/type/reflect/any_value" : [
>>    {
>>      "link" : {
>>        "master_property" : null,
>>        "operation" : null,
>>        "timestamp" : null,
>>        "timestamp>=" : "2008-08-07T16:08:16.000000075",
>>        "valid" : null
>>      },
>>      "sort" : "link.timestamp",
>>      "value" : null
>>    }
>>  ],
>>  "guid" : null,
>>  "type" : [],
>>  "type|=" : [
>>    "/user/augusto/default_domain/type1"
>>  ]
>> }
>> ====
>> 
>> ====
>> {
>>  "code" : "/api/status/ok",
>>  "q1" : {
>>    "code" : "/api/status/error",
>>    "messages" : [
>>      {
>>        "code" : "/api/status/error/mql/type",
>>        "info" : {
>>          "expected_type" : "/type/datetime",
>>          "value" : "2008-08-07T16:08:16.000000075",
>>          "value_type" : "string"
>>        },
>>        "message" : "2008-08-07T16:08:16.000000075 is a JSON string,
>> but the
>> expected type is /type/datetime"
>>      }
>>    ]
>>  },
>>  "status" : "200 OK"
>> }
>> ====
>> 
>> 
>> _______________________________________________
>> Developers mailing list
>> Developers at freebase.com
>> http://lists.freebase.com/mailman/listinfo/developers
> 
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers




More information about the Developers mailing list