ARK: Survival Evolved Wiki
登録
Advertisement
Template-info Documentation

秒単位で指定された期間をフォーマットします。 秒は3桁に丸められます。

使用法[]

{{duration|s|format}}
  • If the second parameter "hhmm" is given , the format will be like hh:mm, hh been the total number of hours including days.
  • If the second parameter "ddhhmm" is given , the format will be like dd hh:mm if the duration is longer than a day, otherwise the format will be like hh:mm.
  • If any other second parameter is given (any non-whitespace character), the format will be like dd:hh:mm:ss.
  • If the second parameter is empty, the format will be like 1d 4h 23m 2s.

Examples[]

  • {{duration|20}} creates 20秒
  • {{duration|140}} creates 2分 20秒
  • {{duration|86406}} creates 1日 6秒
  • {{duration|20|f}} creates 20
  • {{duration|140|f}} creates 2:20
  • {{duration|86406|f}} creates 1:00:00:06
  • {{duration|118518.515625}} creates 1日 8時間 55分 18.516秒
  • {{duration|118518.515625|hhmm}} creates 32:55
  • {{duration|118518.515625|ddhhmm}} creates 1日 08:55
  • {{duration|118518.515625|f}} creates 1:08:55:18.516
Advertisement