Skip to content

Instantly share code, notes, and snippets.

@datashaman
Created April 28, 2019 19:24
Show Gist options
  • Save datashaman/b12a708dc5ebf9cff5a35059f39d8f8f to your computer and use it in GitHub Desktop.
Save datashaman/b12a708dc5ebf9cff5a35059f39d8f8f to your computer and use it in GitHub Desktop.
Datashaman\PHPCheck\datetimes Example
<?php
<<<CONFIG
packages:
- "datashaman/phpcheck: dev-wip"
CONFIG;
#
# This is a Melody script. http://melody.sensiolabs.org/
#
use function Datashaman\PHPCheck\datetimes;
use function Datashaman\PHPCheck\sample;
use function Datashaman\PHPCheck\timezones;
var_dump(sample(datetimes()));
var_dump(sample(datetimes('2000-01-01', '2100-01-01', timezones())));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment