User:BladeLakem/DniTimeTest: Difference between revisions

From Guild of Archivists
mNo edit summary
No edit summary
Line 1: Line 1:
 
D'ni to surface, providing a partial D'ni time string. (D'ni time strings require an input mask for parsing). Default output format<br>
''<nowiki>{{Test/Vee/dni2surface|datetime=9647|input=hhhh }}</nowiki><br>''
{{Test/Vee/dni2surface|datetime=9647|input=hhhh }}
{{Test/Vee/dni2surface|datetime=9647|input=hhhh }}


D'ni to surface, provide Dni Time parts as individual parameters. Format sets output format (uses the format options of the #time command of ParserFunctions)<br>
''<nowiki>{{Test/Vee/dni2surface|hahr=9647|vailee=0|yahr=1|gahrtahvo=0|tahvo=0|gorahn=0|prorahn=0|format=r}}</nowiki><br>''
{{Test/Vee/dni2surface|hahr=9647|vailee=0|yahr=1|gahrtahvo=0|tahvo=0|gorahn=0|prorahn=0|format=r}}
{{Test/Vee/dni2surface|hahr=9647|vailee=0|yahr=1|gahrtahvo=0|tahvo=0|gorahn=0|prorahn=0|format=r}}


{{Test/Vee/surface2dni|year=1991|month=4|day=21|hour=16|minute=54|second=00|format= drr RR rr}}
Surface to D'ni, provide Surface Time as individual parameters. Format sets output (uses custom D'ni format options - also see in situ hyperlinking in format)
''<nowiki>{{Test/Vee/surface2dni|year=1991|month=4|day=21|hour=16|minute=54|second=00|format=[[HHHH XX]] drr RR rr}}</nowiki><br>''
{{Test/Vee/surface2dni|year=1991|month=4|day=21|hour=16|minute=54|second=00|format=[[HHHH XX]] drr RR rr}}


Surface to D'ni, given full surface datetime string (datetime strings accepted are the same as #time). Default output format
''<nowiki>{{Test/Vee/surface2dni|datetime=1991-04-21 16:54:00 +0000}}</nowiki><br>''
{{Test/Vee/surface2dni|datetime=1991-04-21 16:54:00 +0000}}
{{Test/Vee/surface2dni|datetime=1991-04-21 16:54:00 +0000}}


----
----
D'ni to surface - full D'ni datetime string with input mask (non-traditional order in the specified mask). Default output.<br>
''<nowiki>{{Test/Vee/dni2surface|datetime=8 9646 12 0:23:10:00 BE|input=v hhhh y g:t:r:p xx}}</nowiki><br>''
{{Test/Vee/dni2surface|datetime=8 9646 12 0:23:10:00 BE|input=v hhhh y g:t:r:p xx}}
{{Test/Vee/dni2surface|datetime=8 9646 12 0:23:10:00 BE|input=v hhhh y g:t:r:p xx}}


Surface to D'ni, provide Surface Time as individual parameters. Default output<br>
''<nowiki>{{Test/Vee/dni2surface|hahr=9646|vailee=8|yahr=12|gahrtahvo=0|tahvo=23|gorahn=10|prorahn=19}}</nowiki><br>''
{{Test/Vee/dni2surface|hahr=9646|vailee=8|yahr=12|gahrtahvo=0|tahvo=23|gorahn=10|prorahn=19}}
{{Test/Vee/dni2surface|hahr=9646|vailee=8|yahr=12|gahrtahvo=0|tahvo=23|gorahn=10|prorahn=19}}


{{Test/Vee/surface2dni|year=1991|month=2|day=21|hour=16|minute=54|second=00|format=[[dhhhh|29]]}}
Surface to D'ni, provide Surface Time as individual parameters. Format uses variable that indicates it outputs in Dnifont<br>
''<nowiki>{{Test/Vee/surface2dni|year=1991|month=2|day=21|hour=16|minute=54|second=00|format=dhhhh}}</nowiki><br>''
{{Test/Vee/surface2dni|year=1991|month=2|day=21|hour=16|minute=54|second=00|format=[[dhhhh]]}}


----
----
D'ni to surface, provide D'ni Time as individual parameters. Default output<br>
''<nowiki>{{Test/Vee/dni2surface|hahr=9676|vailee=2|yahr=28|gahrtahvo=2|tahvo=8|gorahn=21|prorahn=9}}</nowiki><br>''
{{Test/Vee/dni2surface|hahr=9676|vailee=2|yahr=28|gahrtahvo=2|tahvo=8|gorahn=21|prorahn=9}}
{{Test/Vee/dni2surface|hahr=9676|vailee=2|yahr=28|gahrtahvo=2|tahvo=8|gorahn=21|prorahn=9}}


Surface to D'ni, provide Surface Time as individual parameters. Default output<br>
''<nowiki>{{Test/Vee/surface2dni|year=2020|month=8|day=6|hour=8|minute=59|second=00}}</nowiki><br>''
{{Test/Vee/surface2dni|year=2020|month=8|day=6|hour=8|minute=59|second=00}}
{{Test/Vee/surface2dni|year=2020|month=8|day=6|hour=8|minute=59|second=00}}

Revision as of 00:37, 14 August 2020

D'ni to surface, providing a partial D'ni time string. (D'ni time strings require an input mask for parsing). Default output format
{{Test/Vee/dni2surface|datetime=9647|input=hhhh }}
1991 AD April 21 16:54:00

D'ni to surface, provide Dni Time parts as individual parameters. Format sets output format (uses the format options of the #time command of ParserFunctions)
{{Test/Vee/dni2surface|hahr=9647|vailee=0|yahr=1|gahrtahvo=0|tahvo=0|gorahn=0|prorahn=0|format=r}}
r

Surface to D'ni, provide Surface Time as individual parameters. Format sets output (uses custom D'ni format options - also see in situ hyperlinking in format) {{Test/Vee/surface2dni|year=1991|month=4|day=21|hour=16|minute=54|second=00|format=[[HHHH XX]] drr RR rr}}
9647 DE 0 00 0

Surface to D'ni, given full surface datetime string (datetime strings accepted are the same as #time). Default output format {{Test/Vee/surface2dni|datetime=1991-04-21 16:54:00 +0000}}
Lua error in Module:D'ni_Time/surface at line 390: unknown date/time: 1991-04-21 16:54:00 +0000.


D'ni to surface - full D'ni datetime string with input mask (non-traditional order in the specified mask). Default output.
{{Test/Vee/dni2surface|datetime=8 9646 12 0:23:10:00 BE|input=v hhhh y g:t:r:p xx}}
Lua error in Module:D'ni_Time/surface at line 336: attempt to index a nil value.

Surface to D'ni, provide Surface Time as individual parameters. Default output
{{Test/Vee/dni2surface|hahr=9646|vailee=8|yahr=12|gahrtahvo=0|tahvo=23|gorahn=10|prorahn=19}}
1991 AD February 21 17:53:58

Surface to D'ni, provide Surface Time as individual parameters. Format uses variable that indicates it outputs in Dnifont
{{Test/Vee/surface2dni|year=1991|month=2|day=21|hour=16|minute=54|second=00|format=dhhhh}}
%)]


D'ni to surface, provide D'ni Time as individual parameters. Default output
{{Test/Vee/dni2surface|hahr=9676|vailee=2|yahr=28|gahrtahvo=2|tahvo=8|gorahn=21|prorahn=9}}
2020 AD August 06 08:58:58

Surface to D'ni, provide Surface Time as individual parameters. Default output
{{Test/Vee/surface2dni|year=2020|month=8|day=6|hour=8|minute=59|second=00}}
9676 DE Leesahn 28 2:8:21:9