GithubHelp home page GithubHelp logo

mr-ero / alien-time-converter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 19 KB

这个图形化的小程序可以帮助科幻小说作者解决外星时间换算的问题。用户可以自由设定外星球的自转、公转时间,以及外星的月份和时间流速比例。输入地球日期或外星日期,即可快速换算出对应的日期。

License: GNU General Public License v3.0

Python 100.00%

alien-time-converter's Introduction

Alien-Time-Converter

这是一个图形化的地球与外星的时间换算小程序 当我们在写科幻小说的时候,往往会遇到一个问题,外星人用的日历和我们不一样!(假设外星人也需要日历)每个星球的自转和公转周期都不一样,因为引力不同,时间流速也不一样,外星人更不可能以公元1年作为元年,当地球和外星同时在小说中出现的时候,就会遇到麻烦至极的时间换算问题。 现在,这个简陋至极的小程序可以很好的解决你遇到的问题。 你可以自由设定外星球的自转时间和公转时间,如果外星人有‘月’这个概念的话,你也可以设定在里面。你也可以调整时间流速比例,当外星处在大质量天体周围时,相对于地球,时间会变得更慢。 接下来,你只需要输入地球日期再按下按钮,就可以得到外星日历上的对应日期,反过来也可以输入外星日期得到地球日历上的对应日期。

这是本人第一次写有实际意义的小程序,十分粗糙,还请见谅。

Below is the English translation by GPT-4-0125-preview:

This is a graphical app for converting time between Earth and alien planets. When writing science fiction, we often encounter a problem: aliens use a different calendar! (Assuming aliens need calendars too) Each planet's rotation and revolution periods differ, and due to varying gravity, the flow of time differs as well. It's unlikely for aliens to use Year 1 AD as their epoch year. When Earth and alien planets appear in the story at the same time, this creates a troublesome problem in time conversion. Now, this extremely simple app can solve the problems you're facing. You can freely set the rotation and revolution periods of the alien planet, and if aliens have the concept of 'months', you can set it as well. You can also adjust the time flow ratio, as time would move slower on an alien planet near a massive celestial body compared to Earth. Next, you simply need to enter an Earth date, press the button, and get the corresponding date on the alien calendar; the reverse conversion is also possible by entering an alien date to get the corresponding Earth date.

This is my first attempt at writing a practical app, which is very rudimentary. Please excuse its simplicity.

alien-time-converter's People

Contributors

mr-ero avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.