Skip to content

Releases: natedrake/DateHelper

1.0.0

Choose a tag to compare

@natedrake natedrake released this 26 Mar 14:45

1.0.0 Release

Contains production ready classes:

Date.php

Get the ordinal of a number, and the difference in dates.

DateFormat

Set a date and return it in any date format

Readme

Full Documentation

0.1.4

Choose a tag to compare

@natedrake natedrake released this 11 Jul 12:20

Support to define the date format when return a date format using unix epoch

DateFormat::epochDate(time(), DateFormat::BIG) /* returns Y-m-d H:i:s of current time */

0.1.3

Choose a tag to compare

@natedrake natedrake released this 08 Jul 00:13

Add functionality to return two different types of strings when getting the difference between the current date and another.

E.g Date::get()->getDifferenceFromNow($date) would show full string like "1year 8months 3days 5hours..."

E.g Date::get()->time($date) shows short string like "a year ago"

0.1.2

Choose a tag to compare

@natedrake natedrake released this 07 Jul 21:23

Add functionality for epochDate to return readable date format from Unix epoch timestamp. e.g Tuesday 7th of July 2015 10:21:36 PM

0.1.1

Choose a tag to compare

@natedrake natedrake released this 07 Jul 20:46

Added Epoch functionality for displaying readable dates from unix epoch timestamps

0.1

0.1

Choose a tag to compare

@natedrake natedrake released this 07 Jul 20:43

0.1