Questions tagged [minute]

154 questions
-1
votes
2 answers

How to get the total number of minutes from a date string?

From the back-end, I am retrieving this string as a date: "2017-08-16T18:35:41.611Z2017-08-16T13:35:41.611" How can I extract the total number of minutes from this string? I tried the following: let date = new…
Ralph David Abernathy
  • 5,230
  • 11
  • 51
  • 78
-1
votes
1 answer

How to preserve milisecond data on java simpledateFormat

Basically I'm trying to convert string data to Timestamp format. When I converted data to timestamp format, SimpleDateFormat added three minutes. Because milisecond data equals 3 minute.But I want to preserve milisecond data on timestamp…
dgn
  • 103
  • 5
  • 15
-1
votes
2 answers

How do i round to the nearest whole number

I am calling ToMinutes() on a nullable DateTime, this returns a double butI wish to convert it to the nearest whole number if it is not null. example: From 1534488.74496255 to 1534489 How can I do this ?
floormind
  • 1,868
  • 5
  • 31
  • 85
-1
votes
1 answer

How to get minute when I substrate between 2 hours in android?

I have 2 hours in day, and when i subtracting time I just only get hour value, hour and minute is long data type. How can get hour and minute? example: 10:10 today - 7:45 tomorrow = 21 hour and 35 minute
Noisyman
  • 119
  • 1
  • 1
  • 7
-1
votes
1 answer

Show images one by one after 1 minute

Sorry if iam not able to give accurate title to my question Iam Working on an android game in which i have a fuel bar i.e 10 random vertical lines make a fuel bar in my game case. When a player taps on rematch,the game then One fuel bar became gone…
Arslan Ali
  • 371
  • 5
  • 20
-1
votes
2 answers

JavaScript calculate time and seconds

I was having some problem when trying to perform some calculation logic using JavaScript. Basically along a route there is 80 steps and it took around 9 minutes to finish up the entire route. So I was trying to do an auto route which will tell you…
QWERTY
  • 2,303
  • 9
  • 44
  • 85
-1
votes
1 answer

BATCH Windows: 30 minutes

I want to do something: i have a LARGE batch file, but this is what i want to apply to HOLE the batch: After 30 Minutes, it should display a message. How is this possible, and can i set this to the hole batch. I kinda have a lot of stuff in it.
Deniz Zoeteman
  • 9,691
  • 26
  • 70
  • 97
-2
votes
1 answer

Aggregating to hourly data

I have one time column structured like this 02/01/2003 07:01:42 02/01/2003 07:04:02 02/01/2003 07:36:11 02/01/2003 07:53:09 and an adjacent column with values as integers 2 4 1 1 I want to get the aggregate of the values (average) in hourly…
-2
votes
1 answer

How to get time in seconds from d-m-y h:i:s?

I found this: $minutes = (strtotime("2012-09-21 12:12:22") - time()) / 60; In this question But the string from the API that I took is like 06-09-19 | 16:23:17 and this code don't work at all. How can I do? Thanks.
renguer0
  • 17
  • 10
-2
votes
1 answer

Java Date set the minutes and seconds to 0

I want to set the minutes and seconds of a date to 0, but I see that those methods are deprecated Date yesterday = Date.from(Instant.now().minus(24, ChronoUnit.HOURS)); yesterday.setMinutes(0); yesterday.setSeconds(0);
Nuñito Calzada
  • 4,394
  • 47
  • 174
  • 301
-2
votes
1 answer

how to make a script converting to radians the degree,seconds,minutes?

I am using python and I am having trouble making a script converting an angle with the degree,minutes,seconds given in radiant. I already tried a few things but I am pretty new so I need help
-2
votes
2 answers

db2 : How to convert timestamp to minute in db2

I need a help. How to convert timestamp to minute in sql query? Really appreciate it. Below are my table. Here is my timestamp table field. Need to convert it in minute to get time duration
kent
  • 1
  • 1
-2
votes
3 answers

calculate number of minutes by passing Milliseconds

I have used following to get number of minutes by passing Milliseconds def returnTimeString(miliSec): returnVal = "%d" % ( ((miliSec / 1000) / 60) ) if returnVal == '0': returnVal = 'N/A' return returnVal But I want different…
O.T.
  • 26
  • 1
  • 1
  • 11
-3
votes
1 answer

C++ to convert minutes and seconds

I have a C++ code to convert seconds and minutes but it seems like whenever it convert the second, it won't update the minute. How can I fix it? #include using namespace std; void Convert(int value, int &hour, int &minute, int…
Cael
  • 556
  • 1
  • 10
  • 36
-3
votes
2 answers

I have a specific value and i want to strtotime

I want to add a minute to the time which is the post posted Let say that $time_posted = "12:14" where 12 is hours and 14 minutes, what i actualy want is to add 1 minute to the $time_posted NOTE: $time_posted is for different posts different. Thanks…
Hamza
  • 721
  • 8
  • 8
1 2 3
10
11