Questions tagged as 'data'

2
answers

Date format in php [duplicate]

How to change the date format from 2016-2-26 to 2/26/2016. I already tried to use the format, but it did not work.     
asked by 23.05.2018 / 23:44
1
answer

Display day of the week, according to the date used in the PHP query

Good afternoon everyone, I have a question in a course project. I have a form where I look for patients scheduled on a particular day of the month. When I perform the query to present the scheduled patients, I must also present the day of the...
asked by 20.12.2017 / 19:05
1
answer

How to create a data frame from a database based on the difference of two dates in a column of another categorical variable in software R

I have the following database as an example and the result I expect: In case the values in the new dataframe refer to the days, which is the difference of the last date of a category from the first of the same category.     
asked by 17.04.2018 / 00:11
1
answer

Error in easter calendar algorithm

I was messing around with programs that calculate dates, but I found a very precise python algorithm that correctly returns the day that will fall and the Easter holiday has fallen. The algorithm in python is this: #!/usr/bin/env python #co...
asked by 13.08.2017 / 01:50
1
answer

Get the last id generated in the insert with jquery and redirect to another page

Hello, I'm having trouble getting the generated php id with jquery, so I can send this id to another page, follow the code: queryInsert.php $assunto = $_POST['assunto']; $msg = $_POST['msg']; $query = $db_con->prepare("INSERT IN...
asked by 14.02.2017 / 12:56
1
answer

Capture visitor's local time [duplicate]

Hello, for security reasons I need to get the time the page visitor entered, but the system apparently is taking the time from the server. IP: [XXX.XXX.XXX.XXX] Date: [03-07-2017 - 14:05:49] (Local time 11:05) I'm using the following cod...
asked by 03.07.2017 / 16:06
1
answer

Date validation consisting of three integers in Django

In my application I am getting the day, month and year from the user, the three fields are part of a form and are IntegerField . I do not want to use DateField because the user has the options to inform: Year; Year and month...
asked by 22.11.2018 / 11:38
1
answer

Save words with python accents

I have this json file: {"certa": 1, "vez": 7, "quando": 13, "tinha": 6, "seis": 7, "anos": 6, "vi": 4, "num": 4, "livro": 3, "sobre": 6, "a": 47, "floresta": 1, "virgem": 1, "hist\u00e3\u00b3rias": 1, "vividas": 1, "uma": 31, "imponente": 1, "...
asked by 18.12.2018 / 23:04
1
answer

Archive Keyboard Entries in Python

I am building a code to hold any command made by the keyboard, they will be published in a ROS structure topic to control a mobile robot. I'm not very familiar with Python, the most I've achieved regarding data storage was the code below ... For...
asked by 09.08.2018 / 01:56
2
answers

Search by date in MySQL does not work

I have a query in my PHP code that was working normal, but it suddenly stopped working without me making any kind of change. SELECT * FROM comportamento_loja where ativado = 1 and datahoje BETWEEN DATE_FORMAT(STR_TO_DATE(data_inicial, '%Y-%m...
asked by 06.07.2018 / 03:35