网络时间到C时间 [英] Network time to C time

查看:64
本文介绍了网络时间到C时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

网络时间以1900为基础。 C时间库使用1970.我想

将网络时间值转换为C库时间。即我必须从1900年到1970年减去

的秒数。有没有库函数可以做这个?b $ b这个?


谢谢。

Network time uses 1900 as its base. The C time library uses 1970. I want to
convert a network time value to a C library time. I.e. I have to subtract
the number of seconds from 1900 to 1970. Is there any library function to do
this?

Thanks.

推荐答案

Andrew Chalk写道:
Andrew Chalk wrote:

>

网络时间使用1900作为基础。 C时间库使用1970.

我想将网络时间值转换为C库时间。 I.e.

我必须减去从1900到1970年的秒数。

有没有库函数来执行此操作?
>
Network time uses 1900 as its base. The C time library uses 1970.
I want to convert a network time value to a C library time. I.e.
I have to subtract the number of seconds from 1900 to 1970. Is
there any library function to do this?



为了天堂,为什么?这个数字是一个常数。只需减去

吧。无论如何,所有这些都是偏离主题的。


-

Chuck F(cinefalconer at maineline dot net)

< http://cbfalconer.home.att.net>

尝试下载部分。


-

发表于来自 http://www.teranews.com 的免费Usenet帐户

For heavens sake, why? That number is a constant. Just subtract
it. And all this is off-topic anyhow.

--
Chuck F (cbfalconer at maineline dot net)
<http://cbfalconer.home.att.net>
Try the download section.

--
Posted via a free Usenet account from http://www.teranews.com


CBFalconer< cb ******** @ yahoo.comwrites:
CBFalconer <cb********@yahoo.comwrites:

Andrew Chalk写道:
Andrew Chalk wrote:

>>
网络时间使用1900作为基础。 C时间库使用1970.
我想将网络时间值转换为C库时间。 I.e.
我必须减去从1900年到1970年的秒数。
是否有任何库函数来执行此操作?
>>
Network time uses 1900 as its base. The C time library uses 1970.
I want to convert a network time value to a C library time. I.e.
I have to subtract the number of seconds from 1900 to 1970. Is
there any library function to do this?



为了天堂,为什么?这个数字是一个常数。只需减去

吧。所有这一切都是偏离主题的。


For heavens sake, why? That number is a constant. Just subtract
it. And all this is off-topic anyhow.



如何询问C库函数是否存在,以便
操纵日期和时间Off Topic?!? !?!?! Streuth。

How the hell is asking about the existence for a C library function to
manipulate dates and times "Off Topic"?!?!?!?! Streuth.


>

-

Chuck F(cinefalconer at maineline dot net)

< http://cbfalconer.home.att.net>

尝试下载部分。
>
--
Chuck F (cbfalconer at maineline dot net)
<http://cbfalconer.home.att.net>
Try the download section.


CBFalconer说:
CBFalconer said:

Andrew Chalk写道:
Andrew Chalk wrote:

>>
网络时间使用1900作为基础。 C时间库使用1970.
我想将网络时间值转换为C库时间。 I.e.
我必须减去从1900年到1970年的秒数。
是否有任何库函数来执行此操作?
>>
Network time uses 1900 as its base. The C time library uses 1970.
I want to convert a network time value to a C library time. I.e.
I have to subtract the number of seconds from 1900 to 1970. Is
there any library function to do this?



为了天堂,为什么?这个数字是一个常数。只需减去

吧。


For heavens sake, why? That number is a constant. Just subtract
it.



几乎不变。并非所有的C库都使用1970作为基础,因此网络时代和C库时代之间的秒数在

之内根本不是常数。

Hardly a constant. Not all C libraries use 1970 as their base, so the
number of seconds between the network epoch and a C library epoch is in
fact not constant at all.


无论如何,所有这些都是偏离主题的。
And all this is off-topic anyhow.



为什么?


-

Richard Heathfield< http:// www。 cpax.org.uk>

电子邮件:-http:// www。 + rjh @

谷歌用户:< http://www.cpax.org.uk/prg/writings/googly.php>

Usenet是一个奇怪的放置" - dmr 1999年7月29日

Why?

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999


这篇关于网络时间到C时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆