Questions tagged as 'time'

5
answers

Today (06/30/2015) we will have a second more, what can be the consequences for our systems?

If someone does not know, today 30/06/2015 will have a second more. That is, today after the 23h59m59s we will have 23h59m60s ! This is to do the correction of the International Atomic Time. I know that there are severa...
asked by 30.06.2015 / 22:07
3
answers

How to convert seconds to the "Time: Minute: Second" format?

How can I convert a value in seconds to a format of 'hours: minutes: seconds'. Example: 685 converted to 00:11:25 How do I get there?     
asked by 21.07.2015 / 23:54
1
answer

Comparison of PHP schedules

date_default_timezone_set ( "America/Sao_Paulo" ); $dtz = new DateTimeZone('America/Sao_Paulo'); $dt = new DateTime('now', $dtz); $offset = $dtz->getOffset( $dt ) / 3600; $por_do_sol = date_sunset(time(), SUNFUNCS_RET_STRING, -20.7965404, -49....
asked by 23.02.2015 / 21:37
1
answer

Insert in an array between certain values

I have two values in the time format, 20:03:02 and 20:03:35 , which are in a array in Lua. hora_array={"20:03:02", "20:03:35"} The difference between the two values is 33 seconds (20:03:02 - 20:03:35 = 33). I want to inser...
asked by 06.02.2015 / 23:23
1
answer

What kind should I use to save only the (undated) time in a database?

I'm in doubt on what kind I should use to work with hours on my system. Should I use DateTime , Time or TimeStamp . I wish the times were saved in this format: HH:MM     
asked by 09.07.2015 / 18:43
1
answer

Time is advanced in program .C

I have an application in .c , I ended it but I have a problem with the time. Example: I am recording everything that is done with date and time only the time is advanced. When I do an operation at 12:54 the displayed time is 15:54:16, the...
asked by 13.10.2014 / 17:56
4
answers

Convert string to Time

I have a column in the database that receives a type varchar that corresponds to the hours in my application ( "HH:MM" ). I need to convert this string to a type TIME and then concatenate it with a type DateTime . Ha...
asked by 14.04.2014 / 16:52
1
answer

How can I get the current date and time in #R?

I am creating a process report from a routine, a simplified "logfile", and would like to store the date at the time of the error in a variable. What function does the current date and time result in #R?     
asked by 08.03.2016 / 09:55
2
answers

Object type for data of type Time (Ex: 1 min and 56 seconds) in Android / Java?

I need to work with times, such as a timer (not my case), which at the end of its execution would have to save its value. So I thought of some possibilities like: java.utils.Date : only the data in the case is not a Data; In l...
asked by 13.11.2014 / 13:57
2
answers

Taking system time in C

I want to get the start and end time of a for . Ex.: #include <stdio.h> #include <time.h> int main () { time_t rawtime; struct tm * timeinfo; int i, j; time ( &rawtime ); timeinfo = localtime ( &rawtime );...
asked by 04.11.2014 / 23:42