JustaPackfan
15th February 2006, 19:24
Hello,
Looking for example of how to use inputstr.to.utc function where I would pass in my own format code (not using a stored %u### format).
I continue to get errors (-1). I've tried using such commands as shown below:
out.utc = inputstr.to.utc("11/12/2006", "%u(%02m/%02d/%04Y)",
"14:02:33", "%U(%02H:%02m:%02s)")
out.utc = inputstr.to.utc("11/12/2006", "%D(%02m/%02d/%04Y)",
"14:02:33", "%U(%02H:%02m:%02s)")
The "time format" appears to work, however I am not able to get the "date format" to work. I determined the time format was working because the following code worked (but I am looking to avoid the %u### formats):
out.utc = inputstr.to.utc("11122006", "",
"14:02:33", "%U(%02H:%02m:%02s)")
System Information:
Running Baan V, SSA BW 7.6a.1 (4GL Engine Corelli-wt, build 1571 (2005/11/21 10:15)), on a UNIX (HP-UX) platform (HPUX11.00) with Windows NT front-end. Portingset: 7.1d.10
thank you for any thoughts
Looking for example of how to use inputstr.to.utc function where I would pass in my own format code (not using a stored %u### format).
I continue to get errors (-1). I've tried using such commands as shown below:
out.utc = inputstr.to.utc("11/12/2006", "%u(%02m/%02d/%04Y)",
"14:02:33", "%U(%02H:%02m:%02s)")
out.utc = inputstr.to.utc("11/12/2006", "%D(%02m/%02d/%04Y)",
"14:02:33", "%U(%02H:%02m:%02s)")
The "time format" appears to work, however I am not able to get the "date format" to work. I determined the time format was working because the following code worked (but I am looking to avoid the %u### formats):
out.utc = inputstr.to.utc("11122006", "",
"14:02:33", "%U(%02H:%02m:%02s)")
System Information:
Running Baan V, SSA BW 7.6a.1 (4GL Engine Corelli-wt, build 1571 (2005/11/21 10:15)), on a UNIX (HP-UX) platform (HPUX11.00) with Windows NT front-end. Portingset: 7.1d.10
thank you for any thoughts