All Questions
Tagged with unix-timestamp jquery
39
questions
2
votes
1
answer
7k
views
Difference between two unix timestamps in days, hours, minutes and seconds
I have an event, this events date and time is formatted to be of type unix timestamp.
In JavaScript (not looking for a plugin approach, such as modern.js), I'm now trying to determine the time ...
0
votes
1
answer
872
views
Converting e.timeStamp into the current date/time?
I've set an event listner on an 'li' element which contains a span element that should output the current date.
I have the following lines of code:
var date = new Date();
date.setTime(e.timeStamp);
...
2
votes
2
answers
5k
views
Get current timestamp from a specific timezone in javascript
I'm trying to get a timestamp from a specific timezone that is independent of the local time.
I want my clients from all over the world to see the exact same timestamp. Is this even possible? I don't ...
0
votes
1
answer
388
views
What is exactly Epoch time? Convert epoch in client timezone in PHP?
My questions are:
What is exactly unix epoch timestamp ?
How can i use it in PHP to convert ?
How can i convert base on client timezone ?
I tried many samples to get client timezone:
How to get ...
0
votes
1
answer
845
views
Daterangepicker moment() returns numbers
I have a .cshtml with a daterangepicker.js implemented in it. This page gets the date range (to date, from date) from a parent page via ViewBag. The code is the following:
var _FromDate;
var _EndDate;...
-3
votes
1
answer
353
views
Counting down seconds from 1970 time in javascript
I am using an API that returns the time like this deal_expiration_time:1469396377 which looks like its seconds from 1970. I am trying to get a countdown in MM/SS This is in angular so I apparently can'...
1
vote
1
answer
141
views
jquery map and Date() function
I had this js/jquery function working well with all browsers (to transform a timestamp to a date) but actually safari gives me a console error at the ">" character. Any one knows another way to get ...
0
votes
1
answer
698
views
Formatting a (JSON) UNIX timestamp in Jade & node.js
I'm getting data from a JSON file, of which one of the elements is a timestamp (last_seen) which returns integers like this:
"id": 4294901761,
"distance": 45,
"last_seen": 1465397445
Right now I'm ...
0
votes
1
answer
765
views
Convert all the Unix Timestamp strings on a Wordpress page
I'm using a Wordpress plugin named EventOn to create events on a website. The plugin creates a custom post for each event and will store the event date in a meta key called evcal_srow
where the value ...
-1
votes
4
answers
1k
views
jquery need get unix date format from DD-MM-YYYY
My script put into the input field date with DD-MM-YYYY format.
Now i need to change this date into unix (e.g. 1450220400).
Is any way to do that with with simple jQuery code?
Thank You in advance.
1
vote
1
answer
273
views
Date class converts Timestamp wrong
In my application, I am creating a live console where I output messages with their timestamp and contents. From what I read, the approach I am using below with the Date() class should work as expected,...
0
votes
1
answer
527
views
Operations with unix epoch timestamp
I need help, well the problem's that i need to know how I compare one date with unix epoch timestamp format (a) with actual date (b) in jquery, i need to know if (a) it`s in interval of 3hours to ...
1
vote
1
answer
63
views
datejs : can i get the next monday and inject my timestamp
i am using the library datejs
and i am getting next weak days by this:
Date.parse('next '+selectedDays[i].day)
and its return :
Mon Dec 22 2014 11:07:20 GMT+0500 (PKT)10:40
i want to inject my ...
1
vote
1
answer
300
views
JavaScript DateTimePicker returns wrong unix time?
I am using the DateTimePicker JavaScript library from http://xdsoft.net/jqplugins/datetimepicker/. I really like its GUI and basically it works really fine. But then I tested something like this:
...
1
vote
1
answer
3k
views
Countdown from current timestamp
Here is the plugin I'm using:
https://github.com/PragmaticMates/jquery-final-countdown
I can't seem to get this to work when counting down from the current time. I've tried various things and put ...