Wordless
Stop writing themes like it's 1998.
Public Member Functions | List of all members
DateHelper Class Reference

Provides methods for handling dates and times in a user-friendly way. More...

Public Member Functions

 distance_of_time_in_words ($from_time, $to_time, $include_seconds=false)
 Returns a user-friendly string representation of a time distance. More...
 
 get_the_time_ago ($granularity=1)
 Returns a 'time ago' string based on the creation time of the current post. More...
 
 time_tag ($date_or_time=NULL, $text=NULL, $attributes=array())
 Builds a valid <time /> HTML tag. More...
 
 time_ago_in_words ($from_time, $include_seconds=false)
 Like distance_of_time_in_words() but with fixed value of $to_time. More...
 

Detailed Description

Provides methods for handling dates and times in a user-friendly way.