Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Bug Reports
 PowerHome Messageboard : PowerHome Bug Reports
Subject Topic: ph_seconds not working? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
scottmi1
Groupie
Groupie
Avatar

Joined: July 11 2006
Location: United States
Online Status: Offline
Posts: 60
Posted: August 29 2006 at 07:49 | IP Logged Quote scottmi1

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 View scottmi1's Profile Search for other posts by scottmi1
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: August 29 2006 at 12:12 | IP Logged Quote TonyNo

Looks like a bug...

Quote:
The result of your previous formula: ph_seconds()

is: !

Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
scottmi1
Groupie
Groupie
Avatar

Joined: July 11 2006
Location: United States
Online Status: Offline
Posts: 60
Posted: August 29 2006 at 12:28 | IP Logged Quote scottmi1

Thanks for confirming this for me Tony. Maybe this topic should be moved to Bug Reports?
Back to Top View scottmi1's Profile Search for other posts by scottmi1
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: August 29 2006 at 22:34 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
scottmi1
Groupie
Groupie
Avatar

Joined: July 11 2006
Location: United States
Online Status: Offline
Posts: 60
Posted: August 29 2006 at 23:30 | IP Logged Quote scottmi1

Dave,

Thanks for the workaround.
Back to Top View scottmi1's Profile Search for other posts by scottmi1
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum