duration Questions
2
Solved
Hi i'm using laravel and I want to validate create a regex which will allow a specific format for duration (not time as this can exceed a 24 hr format). so for example 124hrs 30 mins and 24 secs wo...
1
Is there a way to format a localized time duration in Kotlin or Java? I have a Duration, and I want to display it in a localized, human readable string like "1 minute 30 seconds" or "...
Snowshoe asked 19/12, 2022 at 21:16
32
Solved
Is there any way I can use the moment.js format method on duration objects? I can't find it anywhere in the docs and it doesn't seen to be an attribute on duration objects.
I'd like to be able to d...
Consulate asked 7/11, 2012 at 3:13
4
Solved
I am timing some unpredictable I/O. This code
started := time.Now()
time.Sleep(123456789 * time.Nanosecond) // unpredictable process
fmt.Printf("%v", time.Since(started))
Produces
123.456789ms...
Chalone asked 16/10, 2019 at 13:43
5
Hi I'm trying to calculate the difference (duration) between two times in Groovy. e.g.
start = "2010-10-07T22:15:33.110+01:00"
stop = "2010-10-07T22:19:52.356+01:00"
Ideally I would like the get...
2
Solved
This is the method toNanos in class Duration
public long toNanos() {
long tempSeconds = seconds;
long tempNanos = nanos;
// TODO: Here makes me confused
if (tempSeconds < 0) {
// change the...
5
Solved
I would like to recognize a TapGesture and LongPressGesture on the same item. And it works fine, with the following exception: the LongPressGesture alone responds after the duration I specify, whic...
Hiatus asked 28/3, 2021 at 17:34
4
Solved
How should a duration of 500 milliseconds be expressed using ISO 8601? To me, the documentation is not 100% clear. Is it just "PT0.5S" ?
3
Solved
I have movie with duration 127 seconds. I wanna display it as 02:07. What is the best way to implement this?
15
Solved
how to convert minutes into days hours and minutes in java ( we have a week here , 7 days )
public String timeConvert(int time){
String t = "";
int h = 00;
int m = 00;
// h= (int) (time / 6...
3
Solved
I realise that JSON has no real date format and that using ISO 8601 is a good bet given that's what JavaScript uses. What about a duration? JavaScript has no built in format.
I came across ISO 86...
1
I am recording video by MediaRecorder in Chrome. My code is similar to an example from MediaStream docs. I am receiving videos that do not have Duration metadata.
I compared it by mediainfo with ex...
Deplete asked 28/8, 2020 at 20:16
4
Solved
I have a Google doc that list a bunch of hh:mm durations in a column, like:
1:30
1:00
0:30
I am using SUM(D2:D24) to sum it up, and recently the total hh:mm went above 24 hours, so my total ho...
Conceptionconceptual asked 24/10, 2019 at 19:59
3
Solved
While chrono supports parsing of date, time and time zone in ISO 8601 compliant format, I am unable to find any method in the crate to parse duration strings such as PT2M which represents 2 minutes...
Gratulant asked 1/8, 2021 at 15:38
1
Solved
Is there any built-in function in polars or a better way to convert time durations to numeric by defining the time resolution (e.g.: days, hours, minutes)?
import polars as pl
df = pl.DataFrame({
...
Vigen asked 13/2, 2023 at 15:46
9
Solved
NSDictionary* fileAttributes =
[[NSFileManager defaultManager] attributesOfItemAtPath:filename
error:nil]
From the file attribute keys, you can get the date, size, etc. But how do you get the...
Baking asked 7/3, 2011 at 11:53
3
Solved
As duration of a task, suppose that we have a column with cells formatted as MM:SS that would like to convert to seconds. Mathematically speaking, the solution is simple. We just need to compute MM...
Whirly asked 30/6, 2022 at 18:46
5
Solved
Time started time end Duration
6:02:53 PM 6:11:07 PM 0:08:13
6:11:22 PM 6:20:33 PM 0:09:11
6:20:48 PM 6:32:21 PM 0:11:34
6:32:44 PM 6:39:04 PM 0:06:20
6:39:28 PM 7:00:41 PM 0:21:13
7:01:00 PM 7:09:...
Helsie asked 27/2, 2020 at 19:8
3
Solved
Asking for some help here, im trying to convert text to time in duration format on Google Sheets, i´ve used some basic fuctions to to breakdown text (with delimiters as d (days) h (hour) m(minute) ...
Kicker asked 14/4, 2022 at 6:55
1
Solved
So there are these helpful floating previews on the few latest macOS versions. But I can't seem to find any way to increase the duration of a preview (the default is 5 seconds). Is it even possible...
Situs asked 20/10, 2022 at 13:25
1
Solved
I am trying to do calculations without scripts. A solution can be to sum a far in the future date (31/12/9999) +1 and use that value to do calculations
Cell A1 = 1/2/1872 -> -10.194,00
Cell A2 =...
Yuma asked 9/10, 2022 at 11:31
2
Solved
There seem to be two ways to define the end of an event in iCal. One by using duration and the other one by using dtend. Do either of them have any benefits over the other? I can't find any info ot...
13
I have made a voice recorder app, and I want to show the duration of the recordings in a listview. I save the recordings like this:
MediaRecorder recorder = new MediaRecorder();
recorder.setOutput...
Africanist asked 13/3, 2013 at 19:26
8
Solved
I gets following strings from FE:
1m
5M
3D
30m
2h
1Y
3W
It corresponds to 1 minute, 5 months,3 days, 30 minutes, 2 hours, 1 year, 3 weeks.
Is there mean in java to parse it?
I want to manipula...
1
Solved
I'm trying to use the new Foundation formatters. To format a Date, I can do something like this:
Date.now.formatted(.dateTime.hour().minute().second())
// 5:03:17 PM
However, I'm trying to use thi...
Reive asked 11/7, 2022 at 21:3
1 Next >
© 2022 - 2025 — McMap. All rights reserved.