getOffsetTimezone("UTC"); // 0
getOffsetTimezone("America/New_York"); // -18000
getOffsetTimezone("Europe/Madrid"); // 3600
getOffsetTimezone("noExiste");
getDateNowForTimezone("UTC"); // object Date "Thu Feb 25 2021 18:45:33 GMT+0100 (Central European Standard Time)"
getDateNowForTimezone("Europe/Madrid"); // object Date "Thu Feb 25 2021 19:45:33 GMT+0100 (Central European Standard Time)"
getDateNowForTimezone("America/New_York"); // object Date "Thu Feb 25 2021 13:45:33 GMT+0100 (Central European Standard Time)
getDateNowForTimezone("noExiste"); // false
getDateForTimezone("UTC", 2021, 2, 1, 10); // object Date "Mon Feb 01 2021 09:00:00 GMT+0100 (Central European Standard Time)"
getDateForTimezone("UTC", 2021, 8, 1, 10); // object Date "Sun Aug 01 2021 08:00:00 GMT+0200 (Central European Summer Time)"
getDateForTimezone("Europe/Madrid", 2021, 2, 1, 10); // object Date "Mon Feb 01 2021 10:00:00 GMT+0100 (Central European Standard Time)"
getDateForTimezone("Europe/Madrid", 2021, 8, 1, 10); // object Date "Sun Aug 01 2021 10:00:00 GMT+0200 (Central European Summer Time)"
getDateForTimezone("America/New_York", 2021, 2, 1, 10); // object Date "Mon Feb 01 2021 04:00:00 GMT+0100 (Central European Standard Time)"
getDateForTimezone("America/New_York", 2021, 8, 1, 10); // object Date "Sun Aug 01 2021 04:00:00 GMT+0200 (Central European Summer Time)"
getDateForTimezone("noExiste", 2021, 2, 1, 10); // false
getDateForTimezone("America/New_York"); // false
getDateForTimezone(); // false
getOffsetDateTimezone("Europe/Madrid", 2021, 2, 1, 10); // 3600
getOffsetDateTimezone("Europe/Madrid", 2021, 8, 1, 10); // 7200
getOffsetDateTimezone("America/New_York", 2021, 2, 1, 10); // -18000
getOffsetDateTimezone("America/New_York", 2021, 8, 1, 10); // -14400
getOffsetDateTimezone("noExiste", 2021, 2, 1, 10); // false
getOffsetDateTimezone("America/New_York"); // false
getMyTimezone(); // Europe/Madrid
mayorRecursivo([5,3,8,6,1,4]) # 8
mayorRecursivo([5,3,8,6,9,1]) # 9
mayorRecursivo([1,5,3,7,6,4]) # 7
Introduce el valor inicial: 1
Introduce el valor final: 30
Los numeros primos entre el 1 y el 30 son:
2
3
5
7
11
13
17
19
23
29
valores=[11,3,12,4,25,32,2,8,13,1,9,16,5]
print(valoresPares(valores)) # [12, 4, 32, 2, 8, 16]
print(valoresImpares(valores)) # [11, 3, 25, 13, 1, 9, 5]
print(cantidadPares(valores)) # 6
print(cantidadImpares(valores)) # 7