Skip to content

time.timeのドキュメント中の「エポック」のリンクが切れている #867

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ftnext opened this issue Mar 14, 2021 · 2 comments

Comments

@ftnext
Copy link
Contributor

ftnext commented Mar 14, 2021

概要

Python 標準ライブラリ » 汎用オペレーティングシステムサービス » time で、
time.timeのドキュメント中の「エポック」のリンクが切れている

問題のある箇所 (URLで指定すること)

https://docs.python.org/ja/3/library/time.html#time.time

問題の詳細

エポック からの秒数を浮動小数点数で返します。

エポックは https://docs.python.org/ja/3/library/epoch へのリンクになっているが、クリックすると「404 Not Found」

英語では、https://docs.python.org/3/library/time.html#epoch へのリンクになっていて、
クリックすると「The epoch is the point where the time starts,」の箇条書きに移動する
ref: https://docs.python.org/3/library/time.html#time.time

修正案

「エポック」のリンクを以下のように変更する

修正後に挙げたリンクが機能することも確認した。
「エポック (epoch) は時刻の起点のことで、」の箇条書きに移動する

@osamu0329nakamura
Copy link

この部分 :ref:`エポック <epoch>` で修正しても上手くリンクできないようです。

Transifex の訳文には現れませんが library/time.rst には下記の行があるので、クロスリファレンスが作成されても良さそうなのですが実際にはそうなっていません。

.. _epoch:

原文では epoch_ と記載しているので、一旦、エポック (epoch_) で修正してみました。
エポック (epoch)のように表示されてしまいますが、現状よりは改善できると思います。

@tenmyo
Copy link

tenmyo commented Feb 11, 2024

現在のドキュメントでは「エポック (epoch)」となっており、epoch部分から https://docs.python.org/ja/3/library/time.html#epoch にリンクが張られていることを確認しました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants