A millisecond is a thousandth (1/1,000) of a second.
Questions tagged [milliseconds]
660 questions
-1
votes
2 answers
Convert float seconds to milliseconds using regex with Notepad++
I want to convert all seconds contained in the XML tag to milliseconds using regex with Notepad++.
Before converting:
3
4.5
0.7
1.85
The results I want after…

Tần Quảng
- 117
- 9
-1
votes
3 answers
Can I get value of Curren time from miliseconds value
I have a value in miliseconds 1601626934449
Which generated via https://docs.oracle.com/javase/7/docs/api/java/lang/System.html#currentTimeMillis()
but can I somehow be able to get time in human readable format, or in brief I need to be able to…

mjoshi
- 3
- 1
-1
votes
1 answer
milliseconds-timer returns Unexpected error 35010
I have code in Excel VBA which I like to run several times a second.
Before I used this method :
Application.On Time Now + Timevalue("00:00:01")
Although this method can only handle seconds (and no milliseconds).
For that reason I replaced this…

user2165379
- 445
- 4
- 20
-1
votes
1 answer
Is it possible to compare class Millisecond? Like 00:05 seconds > 00:002 second
I have added values on TimeSeries and i would like to compare them,which was before and which was after.The type of values Millisecond. I tryed different ways, but no one of them works....is it possible?
My milliseconds comes to TimeSeries from this…

Sashok
- 1
- 2
-1
votes
2 answers
javascript add 1ms to a string date
I have a var in js which is represented like so:
"lastTimeModified": "2019-02-26T11:38:20.222Z"
and I want to add to it 1ms
I have tried something like this:
dateObj = new Date();
dateObj.setMilliseconds(1);
var newDate = lastTimeModified +…

StackerSapper
- 141
- 6
-1
votes
2 answers
Converting 2 strings with milliseconds into date and calculating time difference java
I have 2 strings with minutes, seconds and miliseconds
String startTime = "02:58.917"
String finishTime = "04:03.332"
and I need to calculate time difference. As i understand (but I'm not sure) the most simple way is to convert them into Date type,…

Ilya
- 135
- 1
- 2
- 10
-1
votes
1 answer
Kotlin - Issue in getting milliseconds for Time passed
I have created below method to get the milliseconds from 12 hour format time :
fun getMillisecondsFromTime(time: String): String {
val formatter = SimpleDateFormat("hh aa")
formatter.isLenient = false
val oldDate =…

Jaimin Modi
- 1,530
- 4
- 20
- 72
-1
votes
2 answers
How to query SQLite database to return all dates/times between 2 specific dates/times which are inserted as milliseconds?
I have an SQLite database with 4 columns. I inserted a date/time values in COLUMN_DATE as milliseconds with the "System.currentTimeMillis()" method and I want to query the SQLite database to get all rows between 2 specific dates also represented as…

Dezo
- 835
- 9
- 16
-1
votes
1 answer
Getting milliseconds from date.getTime() on Android API level 19
I need to get a date-time string in the format
"yyyy-MM-dd'T'HH:mm:ss.SSSZ"
where SSS are the digits for milliseconds (from 000 to 999).
I wrote the following code snippet:
Date date=Calendar.getInstance().getTime();
String currentDateTimeString =…

P5music
- 3,197
- 2
- 32
- 81
-1
votes
1 answer
How to make `mktime` format with milliseconds?
I need make 24 frames per second with PHP ffmpeg. This is current format of
$t = mktime(0, 0, 0, 1, 1, 98);
Later I use this function
exec("/usr/local/bin/ffmpeg -ss " . date("H:i:s", $t) . " -i {$file} -f mjpeg -vframes 1 -s {$size}…

Mantas Kildišis
- 3
- 5
-1
votes
1 answer
Duration.millis symbol not found?
I'm new to JavaFX, especially the built in API, which is the Timeline
But I wanna add a timer for an event using Timeline
Timeline timeline;
timeline = new Timeline(new KeyFrame(Duration.millis(2500),
…

dongdong
- 51
- 5
-1
votes
1 answer
Getting date from the world time in millis
Is any math can sort out date from time-milli? (eg:1544901911)
It is possible to get time by a initial modulus of 86400 and dividing 3600 (hour) and modulus by 3600 and dividing by 60 (minute) of overal milli.
Is it possible to get date from…

Sabareesh
- 5
- 4
-1
votes
2 answers
How to convert this date string to milliseconds in JavaScript
I can get a date string from background, the format is 'Tue Sep 18 14:42:56 SGT 2018'. I want to convert it to milliseconds in JavaScript.
I've already tried Date.parse('Tue Sep 18 14:42:56 SGT 2018'), but it will return NaN
Anybody can help?…

Zhang Kai
- 21
- 2
-1
votes
1 answer
How to use DS3231 RTC with Arduino to improve millis() accuracy?
I am building a stopwatch that must have a millisecond precision.
The precision of the millis () function of arduino is not sufficient to guarantee a good result.
I read this answer:
How to get millisecond resolution from DS3231 RTC
But it does…

dmirko
- 7
- 1
-1
votes
1 answer
NaN JavaScript Result
I am getting a NaN result. Clearly something is not right. But I cannot figure is out what is wrong in the calculations. Heres the code:
var totalTime = video.duration;
var milliToHours = function (value) {
return value / 60 / 60;
}
milliToHours…

Libby Lebyane
- 167
- 2
- 14