Questions tagged [timeago]

Timeago is a jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago").

Timeago is a jQuery plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. "4 minutes ago" or "about 1 day ago"). Homepage.

135 questions
14
votes
5 answers

How to get time difference between two timestamps in seconds with jQuery?

I want to display x seconds ago based on a MySQL Timestamp. I found the plugin called timeago But I cannot find a way to make it display only seconds. I'm OK with 61 seconds, or 300 seconds. Any way to convert the output to seconds with timeago, or…
jeff
  • 13,055
  • 29
  • 78
  • 136
11
votes
1 answer

Flutter: type 'String' is not a subtype of type 'DateTime'

I want to get TimeStamp from mysql & Change it into time ago My TimeStamp is look like: 2021-03-04 06:06:48 And in Flutter: [{id: 1, caption: first post, useruid: b0zbRHZEKMbGSdNoVSjI0gsxXTX2, time: 2021-03-04 06:06:48,}], Error type 'String' is…
Radiant Developers
  • 273
  • 3
  • 5
  • 19
9
votes
4 answers

jQuery Timeago timestamps: How to choose language?

I'm sure this is a dumb question, but I really don't know how to do it. I'm using timeago jquery plugin: http://timeago.yarp.com/ And it has locale support for multiple languages. I'm translating my site from English to Spanish, I'm using PHP to do…
Santiago
  • 2,405
  • 6
  • 31
  • 43
7
votes
5 answers

jQuery timeago usage

I have an tag with class "timeago" in my HTML. When I set it value on page load, then call jQuery("abbr.timeago").timeago(); on document ready function it works. My question is, what if I change abbr.timeago title dynamically from some…
London
  • 14,986
  • 35
  • 106
  • 147
7
votes
1 answer

Ensure that a certain script loads before another script

I can't get how the scripts in a page are loaded. I have jQuery plugins that depend on other scripts. I am using the timeago jQuery plugin. I have loaded this script in head in order: