Changes

Jump to navigation Jump to search
93 bytes removed ,  11:29, 22 May 2016
no edit summary
| '''Examples'''
|
* {{Code|convert:binary-to-string(xs:hexBinary('48656c6c6f576f726c64'))}} returns the string yields {{Code|HelloWorld}}.
|}
| '''Examples'''
|
* {{Code|string(convert:string-to-base64('HelloWorld'))}} returns the xs:base64binary item yields <code>SGVsbG9Xb3JsZA==</code>.
|}
| '''Examples'''
|
* {{Code|string(convert:string-to-hex('HelloWorld'))}} returns the Base64 item yields {{Code|48656C6C6F576F726C64}}.
|}
| '''Examples'''
|
* {{Code|string(convert:string-to-base64('HelloWorld'))}} returns the xs:base64binary item yields <code>SGVsbG9Xb3JsZA==</code>.
|}
| '''Examples'''
|
* <code>convert:binary-to-bytes(xs:base64Binary('QmFzZVggaXMgY29vbA=='))</code> returns yields the sequence {{Code|(66, 97, 115, 101, 88, 32, 105, 115, 32, 99, 111, 111, 108)}}.* {{Code|convert:binary-to-bytes(xs:hexBinary("4261736558"))}} returns yields the sequence {{Code|(66 97 115 101 88)}}.
|}
| '''Examples'''
|
* {{Code|convert:integer-to-base(-1, 16)}} returns the hexadecimal string yields {{Code|'ffffffffffffffff'}}.* {{Code|convert:integer-to-base(22, 5)}} returns yields {{Code|'42'}}.
|}
| '''Examples'''
|
* {{Code|convert:integer-from-base('ffffffffffffffff', 16)}} returns yields {{Code|-1}}.* {{Code|convert:integer-from-base('CAFEBABE', 16)}} returns yields {{Code|3405691582}}.* {{Code|convert:integer-from-base('42', 5)}} returns yields {{Code|22}}.* {{Code|convert:integer-from-base(convert:integer-to-base(123, 7), 7)}} returns yields {{Code|123}}.
|}
| '''Examples'''
|
* {{Code|convert:integer-to-dateTime(0)}} returns yields {{Code|1970-01-01T00:00:00Z}}.* {{Code|convert:integer-to-dateTime(1234567890123)}} returns yields {{Code|2009-02-13T23:31:30.123Z}}.
|}
| '''Examples'''
|
* {{Code|convert:dateTime-to-integer(xs:dateTime('1970-01-01T00:00:00Z'))}} returns yields {{Code|0}}.
|}
| '''Examples'''
|
* {{Code|convert:integer-to-dayTime(1234)}} returns yields {{Code|PT1.234S}}.
|}
| '''Examples'''
|
* {{Code|convert:dayTime-to-integer(xs:dayTimeDuration('PT1S'))}} returns yields {{Code|1000}}.
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu