GeeCON Prague 2014*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes *48hrs Rule (Solution method)* Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "*48hrs Rule (Solution method)*" Watch "*48hrs Rule (Solution method)*" New topic
Author

*48hrs Rule (Solution method)*

Smith Jone
Greenhorn

Joined: Nov 15, 2006
Posts: 11
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 ]

SCJP 5.0<br />SCJD(In progressing!)<br />SCWCD(planing)<br />SCBCD(planing)
Edward Chan
Greenhorn

Joined: Nov 18, 2006
Posts: 3
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

Joined: Sep 18, 2003
Posts: 916

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


SCJP, SCJD, SCWCD, OCPJBCD
Edward Chan
Greenhorn

Joined: Nov 18, 2006
Posts: 3
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
 
GeeCON Prague 2014
 
subject: *48hrs Rule (Solution method)*