Difference between revisions of "Template:Day count to DHMS/doc"

From blackwiki
Jump to navigation Jump to search
imported>MadeYourReadThis
(Created page with '{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> === Usage === Converts a real number representing days into a st...')
 
imported>Vanisaac
m (→‎Notes: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other)
 
Line 19: Line 19:
 
This template was originally created for use with the {{tl|DATEDIFF2}} template to support calculation of time between launch attempts of spacecraft for [[Wikipedia:WikiProject Human spaceflight]].
 
This template was originally created for use with the {{tl|DATEDIFF2}} template to support calculation of time between launch attempts of spacecraft for [[Wikipedia:WikiProject Human spaceflight]].
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Date-computing templates]]
 
[[Category:Date-computing templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 22:52, 24 April 2020

Usage

Converts a real number representing days into a string showing days, hours, and minutes. Minutes are rounded to the nearest minute. Counts larger than 365 are still expressed in days, there is no years component, though support for that could be added if needed.

{{Day count to DHMS|realnumber}}

Example: {{Day count to DHMS|2.94858800014481}}

outputs:

2 days, 22 hours, 46 minutes

See also

Notes

This template was originally created for use with the {{DATEDIFF2}} template to support calculation of time between launch attempts of spacecraft for Wikipedia:WikiProject Human spaceflight.