SELECT * FROM Products
WHERE Date BETWEEN 1669013940394 AND 1669618553557;
from datetime import datetime, timedelta, timestamp
day = '12/Oct/2013'
dt = datetime.strptime(day, '%d/%b/%Y')
start = dt - timedelta(days=dt.weekday())
end = start + timedelta(days=6)
print(start.strftime('%d/%b/%Y'))
print(end.strftime('%d/%b/%Y'))
print(int(timestamp(start)*1000))
print(int(timestamp(end)*1000))
pactl load-module module-combine-sink ......
sink_name=<name of the sink> sink_properties=<properties for the sink> slaves=<sinks to combine> rate=<sample rate> channels=<number of channels> channel_map=<channel map>
public class Main {
public static void main(String[] args) {
Scanner In = new Scanner(System.in);
System.out.print("Введите a: ");
int A = In.nextInt();
System.out.print("Введите b: ");
int B = In.nextInt();
try {
sum(A, B);
}catch(ArithmeticException e) {
System.out.println(e.getMessage());
}
}
static int sum(int a,int b) /* не уверен, что нужно */ throws ArithmeticException {
if (a<0) {
throw new ArithmeticException("a меньше 0");
} else if (b<0) { // моя очепятка детектед.... чеккед и корректед
throw new ArithmeticException("b меньше 0");
}
return a+b;
}
>>> a = [[1,2,3], [11,12,13], [22,33,44]]
>>> a[1][1]
12
>>> b = a[:] # копируем!
>>> b[1][1]=0
>>> b
[[1, 2, 3], [11, 0, 13], [22, 33, 44]]
>>> a
[[1, 2, 3], [11, 0, 13], [22, 33, 44]]
>>>
sudo cp -ax / /mnt/
Ключик -x обязателен, и в /mnt должна быть подмонтирована другая файловая система.<form>
....
<input type="date" id="birthday" name="birthday" value="1985-12-11">
....
</form>
cur.execute("DELETE FROM datas WHERE user_id = ? AND registered < datetime('now','-1 day')", (user_id))