From: "Ardian P. Atmaja" <ardm...@gmail.com>
Date: Thu, 27 Sep 2012 10:14:27 +0700
Local: Wed, Sep 26 2012 11:14 pm
Subject: Re: [mongodb-user] Re: Updating sharding document with ISODate in PHP
it's still not working, Gianfranco. it returns like '1970-01-01'. finally i
*mongos> db.blog.update({'name':'myname','saved_at':'12-09-20 01-02-16',
On Thu, Sep 20, 2012 at 4:29 PM, Gianfranco <gianfra...@10gen.com> wrote:
> As I mentioned in line 21, when you output in php you'll need to convert > the MongoDate to string with a format similar to: > date <http://www.php.net/date>('Y-M-d h:i:s', $obj["saved_at"]->sec)
> On Thursday, September 20, 2012 12:29:41 AM UTC+1, Onyon wrote:
>> Thanks Gianfranco, but i still have a trouble in using ISODate value in
>> <form action="addcomment.php" method="post">
>> its reads 0.29500000 1348043425 but ISODate in the shell like "saved_at":
>> Pada Rabu, 19 September 2012 23:57:16 UTC+7, Gianfranco menulis:
>>> Here's an example:
>>> 1. // Connect
>>> And if you look in the shell you see an ISODate():
>>> 1. > db.cartoons.find()
>>> On Wednesday, September 19, 2012 2:05:38 PM UTC+1, Onyon wrote:
>>>> Hi, i have some sharding enable collection called blog with *name* and
>>>> *mongos> db.blog.update({'name':'myname','saved_at':ISODate('2012-09-19T03:47:44.602 Z')},
>>>> my question is: How to implement it to PHP code?. i still confuse about
>>> --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||