Questions tagged as 'time'

2
answers

How to subtract hours in java?

I'm trying to make the difference in hours in my application. The case is as follows: Based on the current current time and current minute , I want to compare another time I have in a string and I need to know how many hours and how many minute...
asked by 02.09.2017 / 18:16
3
answers

as.Date and srtptime commands in R

Suppose the following vector: datas=c("26/12/2014", "27/12/2014", "28/12/2014", "29/12/2014", "30/12/2014", "31/12/2014") When you apply the commands as.Date(datas, "%d/%m%y") and strptimes(datas, "%d/%m%y") the output is: "...
asked by 15.09.2015 / 16:22
1
answer

How to check if it's another day?

I'm making an application where a feature is available until a condition is reached, after that I have to disable the functionality and just enable it the other day. How do I know it's another day?     
asked by 24.06.2016 / 16:20
1
answer

Doubt about System.currentTimeMillis ()

I was discussing with a friend now little about the origin of the number that results from this method. Where does he come from? Has he been told since? Does it reset ?     
asked by 05.11.2017 / 04:50
1
answer

Is there an online service that makes requests in a given url? [closed]

I need to make a GET request in a url every 5 minutes. Is there a free service that does this?     
asked by 01.12.2016 / 16:42
2
answers

Time comparison

Please, I am trying to compare hours (type Open Now / Closed Now). But I can not. To save the current time, I'm using: object.put("h11", h11.getText().toString()); object.put("h22", h22.getText().toString())...
asked by 24.11.2016 / 00:01
1
answer

I get NA when I convert character to time (POSIXlt)

Why do I get NA when I do this character conversion to POSIXlt? library(bReeze) data(winddata) tempo <- winddata[,1] tempo[1:6] # Preview # [1] "06.05.2009 11:20" "06.05.2009 11:30" "06.05.2009 11:40" tempo_POSIX...
asked by 26.09.2014 / 16:12
1
answer

How to take time per millisecond?

I would like to take the time (HH: MM: SS) per millisecond. Ex: 86400000 It would be: 24:00:00 since it is the equivalent of one day.     
asked by 06.10.2014 / 16:18
1
answer

Profile network java (jdbc)

What tool can I use to evaluate the response time of a request (jdbc) Ex: query = "SELECT * FROM v$version WHERE banner LIKE '%Oracle%'"; ResultSet rs = stmt.executeQuery(query); // linha de cima ⋀ // quanto tempo demorou nesse meio ? // l...
asked by 07.03.2016 / 20:16
1
answer

Runtime in C

I would like to get the runtime in milliseconds of an application, I made the following algorithm. double writingFS(char* Filepath, char* PenDrivepath, clock_t* thput) { clock_t t1, t2; long size = 0; unsigned char buff[PAGE_SIZE]; FILE* fs_f...
asked by 29.09.2018 / 21:36