Questions tagged [seconds]
333 questions
1
vote
1 answer
How to subtract seconds column from timedelta64 column in pandas?
I have many columns containing onset and offset times. I would like to be able to subtract these columns from an overall device delay factor to get corrected offset and onset times. There seems to be an edge case, resulting in answers in this…

zob
- 118
- 14
1
vote
1 answer
seconds since date to date in R
I have a dataset file with a time variable in "seconds since 1981-01-01 00:00:00". What I need is to convert this time into calendar date (YYYY-MM-DD HH:mm:ss). I've seen a lot of different ways to do this for time since epoch (1970) (timestamp,…
1
vote
1 answer
how to add seconds in picked time
i am using showTimePicker widget to pick time, when i select the time , it prints it like this 7:10 PM but i want to add seconds too, it should be like 7:10:00 PM seconds can be default 00.
here is my code where i am creating this
TextField(
…

TimeToCode
- 1,458
- 3
- 18
- 60
1
vote
1 answer
Python: if X is detected more than T seconds:
I am looking for Knowledge.
I'm new to python and need to do a project with a camera Gravity: HuskyLens.
It allows you to display blocks when it detects faces (around the face, it's tracking in summary)
And I would like, when I detect a Block, to…

PabloS
- 27
- 5
1
vote
1 answer
p5.js Time Issue
New to p5.js and trying to create a clock, a sliding clock ideally. I have successfully created a working clock and am now working on adding in the sliding effect. As of right now, I have run into a bug with time for the others, time-1 and time-2.…

Zing
- 23
- 4
1
vote
3 answers
Date without time doesn't hide seconds
I'm using Joda Time to remove seconds from a date.
Firstly, I have this kind of Date:
Thu Nov 05 00:00:00 CET 2020
I pick this date from a local db using this method:
public static Date dateTimeFromString(String s) {
String pattern =…

ThatsSamu
- 61
- 7
1
vote
1 answer
How to loop for a specific number of seconds
I want to create a loop in my Powershell script that will run for a specific number of seconds, is that possible?
Here's what I have so far, not sure if it's right. I was hoping for a more straightforward way to do this. is it possible?
function…

random-xyz
- 137
- 4
- 14
1
vote
3 answers
why POSIX qw{strftime}; is giving me a houre on "0" seconds?
i was playing around with POSIX qw{strftime}; to use as uptime for a program and i found something i didn't know why it happend. I don't use time that much, this was the reason i was messing with it (learning to fill "time" :P)
the math gives me |…

Sounix
- 13
- 4
1
vote
1 answer
The Angular CLI process did not start listening for requests in Angular Application
I am getting the below timeout exception in Angular CLI
TimeoutException: The Angular CLI process did not start listening for requests within the timeout period of 0 seconds. Check the log output for error…

Trusartta Kumar Mahanta
- 29
- 1
- 4
1
vote
1 answer
Calculate difference between start_time and end_time in seconds from unix_time yyyy-MM-dd HH:mm:ss
I'm still learning SQL and I found a couple of solutions on SQL Server or Postgreы, but it doesn't seen to work on HUE
DATEDIFF, only allows me to calculate difference between days
seconds, minutes are not available. Help is very welcome.
I was…

user11925123
- 25
- 3
1
vote
1 answer
How to display calculated leave time?
In MySQL database i've inserted data into 'leaves' table:
+--------+---------+---------+-------------------------------+-----
|Id_LEAVE|ID_WORKER| BEGIN_DATE | END_DATE |…

Johnyblumer2012
- 11
- 2
1
vote
1 answer
caption to display for only a few seconds
The left and right arrows + the caption on my site's - https://byjohan.se - Fancybox are displayed for 60 seconds and then vanish. I'd like to change this to for example 10 seconds, but I simply cannot find where in the jquery.fancybox.min.css to…

SoapB
- 15
- 4
1
vote
0 answers
Stopwatch functionality in google sheet possible?
I am trying to create stopwatch functionality in google spreadsheet using google apps script.
I have a cell which displays the counter and should be incremented after every millisecond when I press the start button.and it should stop whenever I…

Ibrahim Anjum
- 11
- 1
- 5
1
vote
2 answers
Subtract 2 timestamps and check their difference
I want to find difference between 2 timestamps. What I am doing is storing 1st timestamp in shared prefs
and try to subtractt it from the new timestamp. To get timestamp, I am using -
public static String setTimestamp() {
try {
…

Monique890
- 93
- 1
- 7
1
vote
1 answer
PHP Function To Convert Seconds Into Years, Months, Days, Hours, Minutes And Seconds
I don't reall have much knowledge about this but I needed a function that converted secs into y,m,d,h
function convertSecToTime($sec)
{
$date1 = new DateTime("@0");
$date2 = new DateTime("@$sec");
$interval = date_diff($date1, $date2);
…

Intel Fierce
- 11
- 2