From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TulWu-0002tb-LZ for qemu-devel@nongnu.org; Mon, 14 Jan 2013 10:00:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tukx8-0003Vh-Kq for qemu-devel@nongnu.org; Mon, 14 Jan 2013 09:24:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tukx8-0003VF-CG for qemu-devel@nongnu.org; Mon, 14 Jan 2013 09:23:54 -0500 Message-ID: <50F414EB.5050001@redhat.com> Date: Mon, 14 Jan 2013 07:23:39 -0700 From: Eric Blake MIME-Version: 1.0 References: <1357466820-12860-1-git-send-email-lilei@linux.vnet.ibm.com> <1357466820-12860-2-git-send-email-lilei@linux.vnet.ibm.com> <50EB43AE.5000608@redhat.com> <50EFBCC1.5030700@linux.vnet.ibm.com> <50F031CF.9030603@redhat.com> <50F378C7.5040805@linux.vnet.ibm.com> In-Reply-To: <50F378C7.5040805@linux.vnet.ibm.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="----enig2RAEAIIUPLIVQDJGBVRXU" Subject: Re: [Qemu-devel] [PATCH 1/3] qga: add support to get host time List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Lei Li Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org, mdroth@linux.vnet.ibm.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2RAEAIIUPLIVQDJGBVRXU Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01/13/2013 08:17 PM, Lei Li wrote: > On 01/11/2013 11:37 PM, Eric Blake wrote: >> On 01/11/2013 12:18 AM, Lei Li wrote: >>> For this version, it's a one-hour offset represented as:=C2=B1[hh]. >>> Negative values are west, andpositive values are east of UTC. >> Won't work. There are timezones with a half-hour offset. You need to= >> express offset at least in terms of minutes, not just hours. >> > Yes, I have thought about this. For the timezones with a half-hour offs= et, > it can just represented as +0.5 for example. Floating point parsing is a pain compared to integer parsing. Remember, there is no way in POSIX to print a locale-independent floating point number, which forces programs to jump through quite a few hoops to guarantee that they are using '.' for the radix character in JSON output while still honoring the user's locale. Please, use something based at a minimum on minutes (seconds is also possible), not hours, --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org ------enig2RAEAIIUPLIVQDJGBVRXU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJQ9BTrAAoJEKeha0olJ0Nq19AH/3OBMKh5e9lZlpZj7GiL2DpQ D2GCKGj/VKLuOU3m1QwkmAsKr9MgU18Dxi3oSpc03sbluFtAllongS4xkiAvkAkx tioQpZNxtf1cJ478ZEVGejD9vuYM3N2lGKTjz1XQANPy20iBUuJTa4SN3og44IdT ktgYhFd9EypgyFuuowcgrnPGjV7iQrKRkq7sA7Ff7R326M7mNv54cOAPmdthpx1c 6nATtcX9TFFpwJGmFokWyAt/GLb8rlAIsrFNRp8dCx8kqO03goazfz4yW7saH7H/ 85//kEhTkrCTCUDuIGcaKcgAs59BxCG10nqxthGKcFQNlEUzvmLARylaLPxfvss= =ljdk -----END PGP SIGNATURE----- ------enig2RAEAIIUPLIVQDJGBVRXU--