Questions tagged [livestamp.js]

A simple, unobtrusive jQuery plugin that provides auto-updating timeago text to your timestamped HTML elements using Moment.js

Example:

<span data-livestamp="1453631405"></span>

Source: https://mattbradley.github.io/livestampjs/

10 questions
1
vote
2 answers

how to use Momentjs with react

Hi i need to convert timestamp to something like Minutes/Hours/Days ago. I am using moment .But as these are j-query plugins so i am feeling challenges in executing that in react. I have often heard that it is not recommended to use j-query with…
user11648045
1
vote
1 answer

How to implement Livestamp.js + Moment.js in my php mysql

I am beginner and i am trying to implement Livestamp.js + Moment.js in my website for user posts from past a month. Tried everything but not getting the results please help me. Here is my sql CREATE TABLE `posts` ( `id` int(11) NOT NULL, …
Imr An
  • 27
  • 7
1
vote
1 answer

Is there any way to shorten the Livestamp.js time from '10 minutes ago' to '10m ago'?

It could be achieved by editing the defaultRelativeTime variable in the moment.js file from this: var defaultRelativeTime = { future : 'in %s', past : '%s ago', s : 'a few seconds', m : 'a minute', mm : '%d minutes', h :…
Ashil John
  • 7,362
  • 4
  • 19
  • 34
1
vote
1 answer

Custom format not applying

I've go a small application that display live feeds and uses livestamp + moment to update the time in a format similar to what Stackoverflow does to its messages. Now I would like to change it slightly to show things past 24hs in a different…
Prix
  • 19,417
  • 15
  • 73
  • 132
0
votes
0 answers

JQuery will not display the proper time ago

I've used moment with livestamp for years now and all of a sudden it's not working correctly. I simply want to have it say "updated XXX ago" but it somehow is taking the time offset and displaying that as "in 4 hours" instead. Please…
Jaker
  • 11
  • 3
0
votes
0 answers

Moment.js + Livestamp.js getting wrong time from server

I am getting wrong time from the server after posting update. I am using datetime function in the sql and Livestamp.js and Moment.js scripts. CREATE TABLE `posts` ( `id` int(11) NOT NULL, `userid` int(11) NOT NULL, `image` varchar(255) NOT…
Imr An
  • 27
  • 7
0
votes
1 answer

Livestamp.js trigger manually via jQuery

I'm using one of the automatic timeago plugin called Livestamp.js (http://mattbradley.github.io/livestampjs/). It seems to collaborate with moment.js to automatically convert this: to this: 8 minutes…
Taufik Nur Rahmanda
  • 1,862
  • 2
  • 20
  • 36
0
votes
0 answers

jQuery livestamp.js not working at second page

I'm using livestamp.js for times ago function. The jQuery is from https://mattbradley.github.io/livestampjs/. In the first page, it's render 5 years ago correctly. I mentioned it like this. In the…
m2j
  • 1,152
  • 5
  • 18
  • 43
0
votes
1 answer

Moment.js + Livestamp time ago based on UTC DateTime from Server

I'm trying to display a timeago that a question has been asked in my project. In my database I have a Datetime columns 'listed'. When a user posts a question I insert the question with the UTC DateTime. In the client I have both Livestamp.js and…
Liron Harel
  • 10,819
  • 26
  • 118
  • 217
-2
votes
1 answer

What is the best javascript "time ago" package where I can control formatting?

I want to use a time ago plugin like timeago or livestamp.js but I want to control the formatting to something like this: 1s ago 5s ago 1m25s ago 1h3m ago Is there a way to do that with either of the above mentioned plugins or is there a better time…
pbx
  • 689
  • 1
  • 10
  • 22