Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: <11msccssbashir@seecs.edu.pk> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.040 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'receives': 0.04; 'offsets': 0.16; 'readable': 0.16; 'subject:Convert': 0.16; 'subject:format': 0.16; 'timestamp': 0.16; 'format,': 0.24; 'sends': 0.24; 'specifically': 0.29; 'correct': 0.29; 'appreciated.': 0.29; 'message-id:@mail.gmail.com': 0.30; 'subject:time': 0.33; 'subject:from': 0.34; 'received:209.85': 0.35; 'convert': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'received:209': 0.37; 'server': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'read': 0.60; 'everyone;': 0.84 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=1w4TfvQdiPUoudFFkt1ngF8e3DNSSytSxE4XXJvURZs=; b=cD5Q43WV8k0YcYRwTdkY03oDMuJ1Zp2bagawo0VL36WTUTn5KJJSCFoLzWLyecoOwj Yj+CGxKDW+rQf1TfVzRNkKzBx0BSm/Svw2wgUQm2Q3UskDf/YjWYesBkDgV2NQkBi1sT kIs56kFoVdI+2Yv5lfsuwYRQryxhXYf69d6PMavEtcKknMfCVzWf6gwylBWZUeIqf7ej XBmeX1sDLmgF7sRWKvBvT2Hh5X+R5/Ho5alqU8JYLfwrNbKNXIjBWZ4d5QisGFW4VpL3 oLRM+FFziYZF38sZg52UOvKbHQe/ervv9IyprazR2Abr3EdMCmvzB/cCXooMY5Av4yRf V9sA== X-Gm-Message-State: ALoCoQlPj2C9fgE9xug+Dfuv8cz55VdO8d4utyr8gQQk3THmLHvgbnjArz0lo9TVOOCJmFMnSGjr X-Received: by 10.66.50.105 with SMTP id b9mr14437406pao.9.1391088868699; Thu, 30 Jan 2014 05:34:28 -0800 (PST) MIME-Version: 1.0 From: Sadia Bashir <11msccssbashir@seecs.edu.pk> Date: Thu, 30 Jan 2014 18:34:04 +0500 Subject: Convert NTP timestamp from NTP packet to System time and date format To: python-list@python.org Content-Type: multipart/alternative; boundary=bcaec53f92addecddb04f1301dbb X-Mailman-Approved-At: Thu, 30 Jan 2014 14:48:32 +0100 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 31 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391089713 news.xs4all.nl 2924 [2001:888:2000:d::a6]:51838 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65000 --bcaec53f92addecddb04f1301dbb Content-Type: text/plain; charset=ISO-8859-1 Hello everyone; I want to write NTP client which sends and receives NTP packet to NTP server and should read the value from one of the four offsets and convert it to user readable local or GMT time format, I specifically want to know which offsets should I read in order to get correct timestamp from the packet. Any suggestion or help will be appreciated. -- *Sadia* --bcaec53f92addecddb04f1301dbb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello everyone;

I want to write NTP clie= nt which sends and receives NTP packet to NTP server and should read the va= lue from one of the four offsets and convert it to user readable local or G= MT time format, I specifically want to know which offsets should I read in = order to get correct timestamp from the packet.
Any suggestion or help will be appreciated.

--=
Sadia
=A0
--bcaec53f92addecddb04f1301dbb--