Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

*48hrs Rule (Solution method)*

 
Smith Jone
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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 ]
 
Edward Chan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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.
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic