I have that variable to take the current date
$ current_date = date ("ymd");
I have a problem I do not know the exact time but after 6pm to 8pm it takes the data as the current date + 1
some solution for it? if I do:
$ current...
I have the following statement in mysql
select detalle_v.idp, producto.nombre, count(detalle_v.idp) as cantidad, detalle_v.precio as p_unitario, sum(detalle_v.precio) as total
from detalle_v inner join producto on detalle_v.idp = producto.idp...
I'm trying to get hours between a range of hours, example:
I have 2 hours: 23:00:00 (The start) and 01:00:00 (The end)
Now, through a for loop, I try to get the initial time from 30 to 30 minutes until it reaches the end. Exa...
I am trying to perform a function that selects only the days of a certain range of dates that coincide with the condition of a period of time (for example: the first Friday of each month, the last Friday of each month, all the Friday, etc ...),...
my doubt:
I have a df (with Fecha as index and another column Cantidad ) with records every 3rd day from 2016-05-03 until 2016-05-20, example:
df.index [
2016-05-03,
2016-05-05,
2016-05-07 ...]
With: df = df....
I am learning php and I have this code:
<?php
date_default_timezone_set('America/Monterrey');
$f = date (" d\of F\of Y, H:i");
echo $f, "<BR>";
setlocale(LC_TIME, "es_Mx.utf8");
$f2=strftime("Today is %A %d of %B of %G and is %H:%M %p...
I'm trying to compare two hours to charge prices depending on the time (for a parking lot).
public static String horaNoche = "19:00:00";
public static String horaDia = "07:00:00"; //Estos dos strings los obtengo...
There is some way to store a date entered (when you start the app) and that
with that date stored, every time you start the app it is not necessary to return it
to enter. When entering that date, through Calendar, it performs operations
(adds an...
I have created the following table in a SQL database:
create table session(
SessionId int auto_increment unique,
SessionIni datetime,
SessionFin datetime,
UsHGTAG int,
PcId int,
primary key (SessionId)
);
How...