Skip to content

geoloqi/jQuery-Relative-Time

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Time

Usage

<time datetime="" data-relativize="FORMAT"></time>

or

$('time').relative(options);

Options

{
  format: "String representing the origin "
  tick : how often to update the time 0 for no updates
}

Format Reference

Format is a string consisting of the following components...

%s : Seconds %ss : Seconds Padded %m : Minutes %mm : Minutes Padded %h : Hours %hh : Hours Padded %d : Days %dd : Days Padded

%SECONDS : Second(s) %MINUTES : Minute(s) %HOURS : Hour(s) %DAYS : Day(s)

or the string "human" for a human readable time

About

Simple plugin for rendering time relative to a certain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%