Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Verify Times On Quarter Hour
cosmic
post Nov 14 2006, 07:18 PM
Post #1


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 15
Joined: 14-November 06
Member No.: 17,259



I need to verify that a text time entry (I know there's the time entry component, but nobody liked that one, they would rather type in a text form of the times) from a user input ends on the quarter hour. I know that I can split the entry apart and check the last two digits for 15, 30, 45 or 00, but was wondering if there's a different/better way.
Go to the top of the page
 
+Quote Post
pyost
post Nov 14 2006, 07:27 PM
Post #2


Nenad Bozidarevic
Group Icon

Group: [MODERATOR]
Posts: 1,002
Joined: 7-November 05
From: Belgrade, Serbia
Member No.: 9,500



I don't think there's anything better. Just extract the last two digits (let's call it "exct" and set up this condition

CODE
if (exct mod 15 = 0) and (exct < 46)
   then condition:=true;


Whereas there must be numerous solution to this, I am sure you don't want to complicate things unnecessarily.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Are We Missing Out On The Old Times?(18)
  2. Xbox Live. Madden 2005 Penalty Error(0)
  3. Disgaea:hour Of Darkness(5)
  4. Gt4 Lap Times(1)
  5. Will There Be A Rush Hour 3?(6)
  6. Problem: Php And Sendmail - Sendmail Times Out(2)
  7. Question About Asp Now() Function(6)
  8. My Site Is Down For 5 Mins. On An Avg. Every Hour(8)
  9. 2 Renderless Sigs In One Bored Hour(8)
  10. Two Times 0 Degrees(8)
  11. Ultimate-guitar.com(7)
  12. Things I Learned From Watching Happy Feet 8 Times(20)
  13. Feudal Times Browser Based Game(1)
  14. Mass Dogicide - One Of My Worst Days In Recent Times(4)
  15. Want To Update Every Hour(6)
  1. What Will Happen If I Rebooted My Pc 60 Times Consecutively?(20)
  2. Free Web Hosting: (just Relax, Take It Slow, And Let The Good Times Roll) - denied(2)


 



- Lo-Fi Version Time is now: 6th September 2008 - 01:22 AM