Questions tagged [seconds]
333 questions
3
votes
3 answers
PHP round the time to the nearest 15 seconds
This is not a duplicate question, but involves a little understanding about time.
I need a solution to the following problem
I have a number of specifically produced times (based on a date), that need to be rounded to the nearest 15 secs:
60 secs is…

Danny F
- 392
- 8
- 21
3
votes
3 answers
In Linux, schedule task to Hour, minute, second precision
I just want to run a shell scrip at say this exact time "16:22:36". utilities like "at" are useless since they don't have "seconds". "sleep" does not work since the loop is ending 8 hours ahead of time for some reason :s , I have searched all over…

user3334860
- 53
- 2
- 6
3
votes
2 answers
Show a div for couple of seconds and then disappear automatically
When a page loads, a div should appear for like 3 seconds and then automatically disappear. I'm having trouble with the code at the moment. I'm using this code below:
jQuery("#infor").delay(6000).fadeOut("slow");
My HTML is:

user1706511
- 133
- 1
- 7
3
votes
3 answers
Android Creating a variable that increments once per second
In Java for Android, I want to create a variable that increases by 1 every second, in other words, it counts, that way I can check to see if a function has been called in the past 3 seconds, and if not, I want it to do something different than if it…

Zeldarulah
- 302
- 2
- 6
- 15
3
votes
3 answers
PHP Convert seconds into MM:DD:HH:MM:SS
I would like some help converting seconds into a MM:DD:HH:MM:SS format.
I have this code here:

Wesley
- 57
- 2
- 7
3
votes
4 answers
How to add one second to a time string with javascript/jquery
I am trying to create a timer with Javascript but I don't know how to add one second to a time string.
Time string: 03:31:15
function updateWorked() {
var time = $("#worked").html();
???
…

Martignoni
- 75
- 1
- 2
- 6
3
votes
2 answers
Convert decimal number to minutes and seconds using VBA
I have time represented by a decimal number that I need to convert to minutes and seconds in Excel using VBA.
Example:
The number before the decimal point gives the minutes as 0.197683577 (0 minutes)
and the number multiplied by 60 gives the…

user1371038
- 131
- 1
- 2
- 5
2
votes
1 answer
timestamp too big to be saved in a int variable
I'm working on my own calendar application, and I'm currently facing the problem that, as soon as I enter a time later than ca. 2040 the number (seconds) gets too big and can't be saved in a variable of the type "int" anymore.
It seems to be clear…

Marco7757
- 735
- 9
- 16
2
votes
1 answer
Is there a way to count the number of seconds since bootup?
Is there a way to count the number of seconds(ticks?) since bootup even if a user change the time on computer?

Hao
- 8,047
- 18
- 63
- 92
2
votes
1 answer
Creating and displaying game objects every 3 seconds on the screen
I am having trouble in creating and displaying multiple game objects on the screen for every 3 seconds. there is no problem when there's only one object but if I want to create multiple, the problem occurs. To explain in detail, There's a main game…

user1111781
- 133
- 1
- 5
2
votes
0 answers
Call is interrupted after 60 seconds in network tab
I was trying to run a script that downloads a file and I found out that when execution time exceeds 60 seconds the operation is interrupted.
Here is the network tab of my browser :
pic1:
pic2:
How can I increase that value? I think it is related to…

nour bm
- 93
- 7
2
votes
1 answer
Interval field in Postgresql
What is the difference between these commands?
ALTER TABLE podcast_episodes ADD COLUMN duration interval;
ALTER TABLE podcast_episodes ADD COLUMN duration interval SECOND(0);
ALTER TABLE podcast_episodes ADD COLUMN duration interval SECOND;
I…

nanakondor
- 615
- 11
- 25
2
votes
4 answers
How to convert a string describing time into seconds?
I'm trying to make a function to convert a time string (from the user) to seconds.
what I would like to do is to let the user input the time as a string, like:
"one hour and forty five minutes"
and then break it down into seconds. So the output…

paolo garrasi
- 79
- 2
- 6
2
votes
1 answer
Change a variable over time
I’m kind of new to python, I’m trying to make a little game in pygame, in which I have a “hunger bar” which go down over time, I was trying to look for a module or function that every x seconds change the variable “hunger” but each one that I have…

Abraham Esquivel
- 81
- 8
2
votes
2 answers
ZonedDateTime ignores 00 for ss part
I am trying to convert string value "2018-10-11T12:00:00Z"; to ZonedDateTime.
If I use the default ZonedDateTime.parse(zonedDateTime) then ss portion i.e. 00 is removed and I get "2018-10-11T12:00Z" as output.
Can you please help how to retain 00 as…

sorab
- 321
- 1
- 4
- 15