Questions tagged as 'datetime'

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
4
answers

Convert date format to php

I'm working with Wordpress php and I get from the database a date in the following format: "October 22, 2018", plus I need to convert it to "2018-10-22", How do I get this? I tried: date('Y-m-d', strtotime(get_post_meta( $id_pedido, "Data de...
asked by 23.10.2018 / 19:35
1
answer

How to get the date and time of the day with LocalDateTime

I have this date in the database: 21/07/18 15:52:00,000000000 When the query passes parameter LocalDateTime , I want to list all dates that start the day. How to get the minimum date with LocalDateTime , and make the data query?...
asked by 22.08.2018 / 01:38
1
answer

Calculate difference between dates in days in R

How do I calculate the difference between dates and have the result in days? I have a column in my table called input with data similar to the ones shown below: Entry    2017-01-27   2017-06-01   2017-10-05   2017-09-27   2017-08-31...
asked by 31.01.2018 / 07:54
2
answers

TimeSpan time difference in 24hr format

I am asking this question because I have not located any topic with my problem, which is very similar to others. I have 2 fields TimeSpan? with one referring to the entry time and the other to the exit time . I want to know the t...
asked by 07.02.2017 / 14:56
2
answers

Difference between start date and end date with moment js

I need to tell you how much time I have for a certain timer, I have the date from which I started the event. I'm developing with angular 4 typescript and I use plugin moment js In my html I'm doing this: <div class="row ca...
asked by 01.11.2017 / 15:26
1
answer

How do I get the time in seconds of a date in the string format?

I know that the time(0) function returns me the seconds from the first of January 1970, in which case the user would enter a date (dd-mm-yyyy or in any format due to system limitation) check which date is the oldest. Are there librari...
asked by 15.11.2016 / 21:23
1
answer

How to generate TimeFormatter in YYYY-mm-DDThh format: mm: ss-TZ

I have the string 2018-09-26T10:36:40-03:00 and would like to convert it to LocalDateTime . DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-yyyy'T'HH:mm:ss'Z'"); LocalDate.parse("2018-09-26T10:36:40-03:00",format...
asked by 24.10.2018 / 15:38
1
answer

How to check time entry and void calculation when it comes blank

I'm calculating the difference between two times using
asked by 18.08.2015 / 22:22
1
answer

How do I display a layout in the HomeScreen Widget for each day of the week?

I would like to show a particular layout in the HomeScreen Widget for each day of the week. I have the 5 days, and when I identify them, the device should update the layout of the widget. How could I do it?     
asked by 20.02.2014 / 00:30