• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

*48hrs Rule (Solution method)*

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should understand to 48hrs = within 2 days :roll:
48hrs rule is not "MUST".
Fix Your Windows Date(or Linux Date and so on),and You can test this rule.


[ November 25, 2006: Message edited by: Smith Jone ]
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so do you guys actually ask for date of occupancy from user when they want to make a booking? and use this date to compare with the current system date to see if the difference is greater than 20 hours.
 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Smith,
You are right, a room is available if the rooms date field value is between the allowed interval(today, today + 2 days).

Edward,
You need to check each record before booking, you can find this in the specs.
I am not shore about this :


and use this date to compare with the current system date to see if the difference is greater than 20 hours.



I mean this is wrong !


Regards M
 
Edward Chan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Edward,
You need to check each record before booking, you can find this in the specs.
I am not shore about this :

quote:
and use this date to compare with the current system date to see if the difference is greater than 20 hours.



I mean this is wrong !



I am sorry my mistake. Suppose to be 48 hours.

Actually my understanding of this 48 hours requirement is like this:

for example, a customer wants to be a booking on wednesday, but today's date is monday. Therefore it's greater than 48 hours and the program reject user to make this booking.

Am i correct?

thanks
ed
reply
    Bookmark Topic Watch Topic
  • New Topic