This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
You will write some functions related to calendar dates. In all problems, a “date” is an array of type [int*int*int], where the first part is the year, the second part is the month, and the third part is the day. A “reasonable” date has a positive year, a month between 1 and 12, and a day no greater than 31 (or less depending on the month). | |
Your solutions need to work correctly only for reasonable dates, checking for reasonable dates it's not required. | |
1 - Write a function is_older that takes two dates and evaluates to true or false. Use the $dates array as input. | |
It evaluates to true if the first argument is a date that comes before the second argument. (If the two dates are the same, the result is false.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# We need each node defined as a separate platform in order to give them different ip addresses on the private network | |
--- | |
driver_plugin: vagrant | |
driver_config: | |
require_chef_omnibus: true | |
box: opscode-ubuntu-12.04 | |
box_url: https://opscode-vm.s3.amazonaws.com/vagrant/opscode_ubuntu-12.04_provisionerless.box |