ntp client/daemon sync

All,
I need to write a script which can determine if my NTP client is X second off from the NTPD server time. I am looking for a crafty oneliner to calculate the time difference?

man ntpdate

I looked at 'ntpdate', 'ntpdc'.

Then, what's wrong with the offsets values provided :confused: e.g.

[house@leonov] ntpdate -q ch.pool.ntp.org
server 62.65.142.249, stratum 2, offset -0.130191, delay 0.04210
server 217.147.223.78, stratum 3, offset -0.138368, delay 0.03397
server 194.88.212.205, stratum 3, offset -0.179979, delay 0.03328
server 195.130.196.7, stratum 2, offset -0.139023, delay 0.03497
server 193.138.215.60, stratum 3, offset -0.137205, delay 0.03891
 5 Oct 16:47:50 ntpdate[7207]: adjust time server 195.130.196.7 offset -0.139023 sec