time-format Questions

28

Solved

The server is sending a string in this format: 18:00:00. This is a time-of-day value independent of any date. How to convert it to 6:00PM in Javascript? I could prepend today's date as a string to ...
Boucicault asked 16/12, 2012 at 3:46

11

Solved

How do I convert my time from 2010-12-30 23:21:46 to ISO 8601 date format? (-_-;)
Croupier asked 16/3, 2011 at 7:38

35

Solved

I am storing time in a MySQL database as a Unix timestamp and that gets sent to some JavaScript code. How would I get just the time out of it? For example, in HH/MM/SS format.
Hanzelin asked 11/5, 2009 at 8:23

8

Solved

I am trying to make a simple program to convert time given in seconds to hh:mm:ss format. But for some particular input values it produces an incorrect time format. This is what I have tried: Publ...
Voltaic asked 15/1, 2012 at 10:39

48

Solved

I want to convert a duration of time, i.e., number of seconds to colon-separated time string (hh:mm:ss) I found some useful answers here but they all talk about converting to x hours and x minutes...
Zinck asked 10/6, 2011 at 23:23

33

Solved

I've created this script to calculate the date for 10 days in advance in the format of dd/mm/yyyy: var MyDate = new Date(); var MyDateString = new Date(); MyDate.setDate(MyDate.getDate()+10); MyDa...
Cirri asked 31/8, 2010 at 0:28

41

Solved

How can I generate the name of the month (e.g: Oct/October) from this date object in JavaScript? var objDate = new Date("10/11/2009");
Galinagalindo asked 29/10, 2009 at 12:19

12

Solved

My problem is there is a switch in my app which toggles for 12 hour and 24 hour time format.I am displaying my labels time according to that, but the UIDatePicker time is not getting changed.It's t...
Inkster asked 22/6, 2012 at 6:32

10

Solved

I'm trying to make a loop that will output this: 08:00 08:15 08:30 08:45 09:00 09:15 09:30 09:45 ...etc I need it to go from 08:00 to 17:00. Here's my code so far: function echo_datelist ($i, $j, ...
Ricotta asked 4/8, 2011 at 21:54

37

Solved

How can I convert seconds to an HH-MM-SS string using JavaScript?
Comprise asked 24/8, 2009 at 14:26

3

How to find out the Real Geographical Time, as in my application I want to attach the real time with my application. So that if the user changes the time in his device then I should get only the r...
Unmoved asked 4/4, 2013 at 10:11

8

Solved

I need to get the current time, in Hour:Min format can any one help me in this.
Loux asked 6/10, 2009 at 14:26

19

Solved

I'm confused. After stumbling upon this thread, I tried to figure out how to format a countdown timer that had the format hh:mm:ss. Here's my attempt - //hh:mm:ss String.format("%02d:%02d:%02d",...
Canikin asked 27/1, 2012 at 0:1

7

Solved

I am using Rails 4, Ruby 2.1 with PostgreSQL. I have a database field called duration which is an interval data type. When pulling out the data in this column it returns in the format of hh:mm:ss, ...
Kallman asked 25/9, 2014 at 1:46

5

Solved

I am having trouble using java's LocalTime to parse a string with hours, minutes, and seconds. LocalTime t = LocalTime.parse("8:30:17"); // Simplification This throws the following exception: ...
Egalitarian asked 11/4, 2020 at 15:11

3

Solved

I use the /usr/bin/time program to measure the time for a command. with the --format parameter i can format the output. e.g. /usr/bin/time -f "%e" ls is there a way to output a bigger accuracy o...
Dialogize asked 6/6, 2013 at 10:9

15

Solved

The Youtube V3 API uses ISO8601 time format to describe the duration of videos. Something likes "PT1M13S". And now I want to convert the string to the number of seconds (for example 73 in this cas...
Sidetrack asked 29/5, 2013 at 11:23

4

Solved

Is it possible to format seconds in a countdown style? For example, if I have var seconds = 3662, how can I show: 1 hour 1 minute 2 seconds. I tried using formatDistanceStrict(3662) but this is onl...
Good asked 26/6, 2020 at 8:1

6

Solved

I'm trying to display a datetime from my MySQL database as an iso 8601 formated string with PHP but it's coming out wrong. 17 Oct 2008 is coming out as: 1969-12-31T18:33:28-06:00 which is clearly ...
Vesuvianite asked 24/5, 2009 at 6:12

3

Solved

I'm trying to debug a potential issue in the iOS Simulator (v 7.0) which requires the iPad to be running in 24-hour time mode. Obviously, the option is not available to change in the simulator itse...
Flier asked 13/11, 2013 at 21:13

4

Solved

I'd like to format a Period using a pattern like YY years, MM months, DD days. The utilities in Java 8 are designed to format time but neither period, nor duration. There's a PeriodFormatter in Jod...
Dermis asked 12/12, 2018 at 19:12

2

Solved

I have a flight itinerary program where I need to get difference between departure and arrival time. I get these specified times as String from the data. Here is my problem: import static java.tim...
Sibby asked 12/11, 2018 at 0:2

7

Solved

I have problem with converting 24-hour format to 12 hour format. This is my code. private TimePickerDialog.OnTimeSetListener mTimeSetListener = new TimePickerDialog.OnTimeSetListener() { @Over...
Heliozoan asked 17/12, 2013 at 8:29

1

Solved

While going through the Logstash date plugin documentation at https://www.elastic.co/guide/en/logstash/current/plugins-filters-date.html#plugins-filters-date-match I came across TAI64N date forma...
Decretive asked 18/6, 2018 at 10:16

3

I am trying to debug something in Visual Studio that requires millisecond precision and it is making it very onerous because the parameter-less ToString() representation of a System.DateTime does n...
Barrack asked 25/5, 2018 at 19:57

© 2022 - 2024 — McMap. All rights reserved.