Version 1, December 2009
Copyright (C) 2009 Philip Sturgeon [email protected]
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
<?php | |
function formatDate($strDate) { | |
$parts = explode(' ', $strDate); | |
$dates = explode('/', $parts[0]); | |
$times = explode(':', $parts[1]); | |
// check to see if it is am or pm | |
if(strtolower($parts[2]) == 'pm' && $times[0] != 12) { | |
// add 12 to the hour as it needs to be military time | |
$times[0]+=12; | |
} |
<?php | |
function formatDate($strDate) { | |
return DateTime::createFromFormat("m/j/Y g:i:s A", $strDate)->format('Y-m-d H:i:s'); | |
} |
<?php | |
function calculateDateDiff($strStart, $strEnd) { | |
$parts = explode(' ', $strStart); | |
$dates = explode('/', $parts[0]); | |
$times = explode(':', $parts[1]); | |
$unix_start = mktime($times[0], $times[1], $times[2], $dates[0], $dates[1], $dates[2]); | |
$parts = explode(' ', $strEnd); | |
$dates = explode('/', $parts[0]); | |
$times = explode(':', $parts[1]); |
<?php | |
function calculateDateDiff($strStart, $strEnd) { | |
$objStart = DateTime::createFromFormat("m/j/Y g:i:s A", $strStart); | |
$objEnd = DateTime::createFromFormat("m/j/Y g:i:s A", $strEnd); | |
// Return Total Seconds | |
return $objEnd->getTimestamp() - $objStart->getTimestamp(); | |
// Return formatted diference (7hrs 5mins and 43 seconds) | |
return $objStart->diff($objEnd)->format('%hhrs %imins and %sseconds '); |
WEES GEEN LUL PUBLIEKE LICENTIE | |
Versie 1, December 2009 | |
Copyright (C) 2009 Philip Sturgeon <[email protected]> | |
Iedereen heeft toestemming dit document te kopiëren en te distribuëren, | |
en veranderen is toegestaan als je de naam van het document verandert. | |
WEES GEEN LUL PUBLIEKE LICENTIE |
{ | |
"require": { | |
"illuminate/foundation": ">=1.0.0", | |
"illuminate/auth": ">=1.0.0", | |
"illuminate/database": ">=1.0.0", | |
"illuminate/view": ">=1.0.0", | |
"amazonwebservices/aws-sdk-for-php": "1.5.*", | |
"codeguy/upload": "*", | |
"sybio/image-workshop" : "*", |
Version 1, December 2009
Copyright (C) 2009 Philip Sturgeon [email protected]
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# Operating System | |
config.vm.box = "precise64" | |
config.vm.box_url = "http://files.vagrantup.com/precise64.box" |
{{ if {helper:date format="D"} == "Mon" }} | |
<p>Bla</a> | |
{{ endif }} |
source 'https://rubygems.org' | |
gem "json" | |
gem "typhoeus" | |
gem "quimby" |