Author |
|
scottmi1 Groupie
Joined: July 11 2006 Location: United States
Online Status: Offline Posts: 60
|
Posted: August 29 2006 at 07:49 | IP Logged
|
|
|
I am trying to use the ph_seconds function in a macro and am running into a problem. I can't seem to get it to return a value. Even when I have the function all by itself in a formula, it evaluates to !. I tried re-initalizing PH and even rebooting the PC, but I get the same result. Can someone else check this and see if it's just me?
Thanks!
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: August 29 2006 at 12:12 | IP Logged
|
|
|
Looks like a bug...
Quote:
The result of your previous formula: ph_seconds()
is: ! |
|
|
|
Back to Top |
|
|
scottmi1 Groupie
Joined: July 11 2006 Location: United States
Online Status: Offline Posts: 60
|
Posted: August 29 2006 at 12:28 | IP Logged
|
|
|
Thanks for confirming this for me Tony. Maybe this topic should be moved to Bug Reports?
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: August 29 2006 at 22:34 | IP Logged
|
|
|
It's a combination of two problems. The first is the help file is inaccurate. The ph_seconds function takes a single "time" parameter and would need to have the following syntax to return what the help file describes:
ph_seconds(now())
The part of the problem is that once the correct syntax is used, the number returned is too large by 86400.
Ive corrected the second problem and will have the Help file updated to reflect the proper format as well.
In the meantime, you can get the same functionality by using:
ph_secondsafter(00:00:00,now())
HTH,
Dave.
|
Back to Top |
|
|
scottmi1 Groupie
Joined: July 11 2006 Location: United States
Online Status: Offline Posts: 60
|
Posted: August 29 2006 at 23:30 | IP Logged
|
|
|
Dave,
Thanks for the workaround.
|
Back to Top |
|
|