gpt4 book ai didi

datetime - Chronolocation - 描述地理定位的时间等价物

转载 作者:行者123 更新时间:2023-12-02 19:32:34 25 4
gpt4 key购买 nike

"Geolocation is the identification of the real-world geographic location of an object. Geolocation may refer to the practice of assessing the location, or to the actual assessed location." -- http://en.wikipedia.org/wiki/Geolocation

是否有一种标准方法来描述超出 Unix 时间戳的时间位置/坐标?如果没有,请建议或描述一个大纲。这样的系统会将时间形式化,例如:

  1. -13,750,000,000 ± 11,000,000(大爆炸)
  2. 1970-01-01:00:00:00(Unix 纪元)
  3. 1(CE一年级)

例如:地理位置和时间定位经常缺乏精度——这只是一个考虑因素,但我确信还有更多。

我的目标是形式化一种存储和检索各种时间位置的方法。正如您可能想象的那样,这比听起来更复杂。

最佳答案

我从未听说过这样的系统,但是编写一个存在这样的结构化数据类型的类是相当简单的:

struct bigTime{
signed long int millenium;
int decade;
signed long int seconds;
}time;

您可以存储任意点之前/之后的千年(为简单起见,甚至是 1970 年)作为长距离,几十年作为中距离,然后使用秒和毫秒作为短期。

您可以创建一个类,其中添加 +/- $X 秒、分钟、小时、天、周、月、年、几十年、世纪、千年将是简单的。

Say you wanted to go 156 years back. that's -15 decades and -189 341 556 seconds. 

Or 3205 years and 2 weeks and a day back. That's -3 millenia, -20 decades, -159 080 630 seconds.

Or even 67,000,012 years (from jonathan's offtopic joke). That's -67000 millenia, -1 decade -63 113 851.9 seconds.

所有这些都来自今天,但可能来自您选择的任意点。

我描述的系统将为您提供 4.2 万亿年的时间,以任何一种方式工作到毫秒,并且或多或少地最小化所需的内存。 (我相信如果你尝试的话,它可能会降低更多)

关于datetime - Chronolocation - 描述地理定位的时间等价物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10454402/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com