Questions tagged [milliseconds]

A millisecond is a thousandth (1/1,000) of a second.

660 questions
-2
votes
3 answers

want to add milliseconds in time stamp of console output using gawk bash

I am using following snippet to add timestamp to console output command | gawk '{ print strftime("[%Y-%m-%d %H:%M:%S]"), $0 }' how to add milliseconds to it?
-2
votes
1 answer

parsing seconds to mm.ss.00 in r

I want to convert seconds (performance times)into a mm.ss.00 format. Ideally I'm planning on keeping it in a numerical data format and not a time string (HH.MM.SS etc) so that I can analyses on it using satisitcal models etc. was hopefull to find a…
BigBird
  • 5
  • 3
-2
votes
1 answer

Getting milliseconds with Math.floor

I'm using countdown-inline JS and I've got the following code: var diff = options.timestamp; var df = new Date(diff); var d = Math.floor(df / (60 * 60 * 1000 * 24) * 1), h = Math.floor((df % (60 * 60 * 1000 * 24)) / (60 * 60 * 1000) * 1), m…
Cicharito
  • 131
  • 5
  • 17
-2
votes
1 answer

Mysql converting milliseconds gives me 1970

When I attempt to use FROM_UNIXTIME(dateField) I get 1970... I even tried FROM_UNIXTIMESTAMP, still no good. I'm trying to convert milliseconds to date format. EDIT: Using FROM_UNIXTIME(`createdDate`) input: 1549477680843 Output: January 01,…
user1098063
-2
votes
1 answer

convert milliseconds to java date with offset hours (Z05:00)

How to convert string value in milliseconds to the string of date format as "2006-01-02T15:04:05Z07:00"? (inlcuding offset with Z)
-2
votes
1 answer

JS - Convert Milliseconds into Minutes, Seconds and Hundreths of a second

I am measuring quite precise time and have to convert miliseconds into minutes, seconds and hundreths of a second. Like this: MM:SS.hh Any help is appreciated!
sk_in_the_house
  • 81
  • 2
  • 11
-2
votes
2 answers

How can I add one month to change into the milliseconds?

I have a problem changing the current time into milliseconds, the milliseconds shown one month before the set date and time. I know the computer starts the months at 0, how can I solve the problem? First, I transfer the date and the time into…
Mark
  • 39
  • 8
-2
votes
1 answer

C# calculating the time remaining until a provided string in milliseconds

My problem is the following, I pull a string of raw data from a website and it contains a value in milliseconds of a time in the future. Now I want to calculate how much time is remaining until that time in the future. First I tried converting the…
-2
votes
2 answers

How to combine multiple cells to create one cell with Excel

I have an Excel file containing in 4 columns: hours minutes seconds milliseconds 9 7 51 905 9 7 58 233 How can I put one row of this data into a single cell? My aim is to create a single cell…
Luke
  • 53
  • 6
-2
votes
2 answers

How to add delay to a while loop in Java?

I wanna combine a while loop with Thread.sleep, so the code will run every nanosecond or microsecond in java. Can someone help me? Sorry for my bad English, I'm Dutch.
Je moder
  • 83
  • 1
  • 1
  • 11
-2
votes
2 answers

Count up timer on Android?

I've been looking for a way to create a timer that counts up in the format of mm:ss:SS and cannot for the life of me find a way of doing it. I had a timer running through a Handler and a Runnable but the timing was off and it took around 2.5 seconds…
Eamon Boyle
  • 81
  • 2
  • 8
-2
votes
1 answer

Converting String to Date in JavaScript

In a JavaScript program, I have to get date in milliseconds or as a string in a format recognized by the parse method from user as input in textbox and then by clicking on a button convert it in toString and then clicking on second button getDate. I…
-2
votes
3 answers

GMT in java, simple but not working

This is both a duplicate and not a duplicate! Just please help me and don't refer me to anywhere else, cause I'm really unable to get the GMT time. The answer seems easy but it doesn't work for me. I don't know are the answers all aver the web…
Mohsen Kamrani
  • 7,177
  • 5
  • 42
  • 66
-2
votes
1 answer

Make python process stop/wait/sleep for 0.2 seconds [Works]

Title says it all, is it possible to make python sleep for less than a second? WORKS: import time print ("foo") time.sleep(0.2) #talking about the value of the time print ("bar") If not, then is there any other way? Thanks Using python 3.2.2 EDIT:…
josh
  • 1,205
  • 4
  • 14
  • 14
-2
votes
5 answers

How to get current system time in milliseconds from 1/1/1970 (C++)

I need a function or library to get the current system time in milliseconds from 1/1/1970 (C++) ? I need to get a unsigned double number containing the milliseconds from 1/1/1970. The operating system is Windows. ADDITIONAL INFO: Need to synchronize…
Patrik
  • 1,286
  • 1
  • 31
  • 64
1 2 3
43
44