User`s guide
APPENDIX A Function Reference
User’s Guide 137
uURIEncode
Description Returns a new version of a complete URI, replacing each instance of certain
characters with escape sequences representing the UTF-8 encoding of the
characters.
Syntax string uURIEncode(uri)
Parameters
string uri
The URI to encode.
Examples To encode a URI:
uURIEncode("www.sybase.com/filename with spaces.txt")
// returns
"www.sybase.com/filename%20with%20spaces.txt”
Date and time functions
A time string can be in any of the following formats:
1 YYYY-MM-DD
2 YYYY-MM-DD HH:MM
3 YYYY-MM-DD HH:MM:SS
4 YYYY-MM-DD HH:MM:SS.SSS
5 HH:MM
6 HH:MM:SS
7 HH:MM:SS.SSS
8 now
9 DDDD.DDDD
Formats 5 through 7 that specify only a time assume a date of 2000-01-01.
Format 8 is converted into the current date and time, using Universal
Coordinated Time (UTC). Format 9 is the Julian day number expressed as a
floating point value.
Most of the
Date and Time functions are derived from the uFormatDate
function. The only difference is that the other
Date and Time functions only
return a special format or part of the date and they do not have the first format
parameter. Therefore,
uDate() is equivalent to uFormatDate("%Y-%m-%d").
Getting the current time