Advertisement
chrisdaloa

Ritiro rifiuti (Mola di Bari quartiere Pirp-Cerulli)

May 29th, 2019
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.37 KB | None | 0 0
  1. {# domenica - 0#}
  2. {% if (now().timestamp() | timestamp_custom('%w')) == '0' %}
  3.     {# 22:00 / 23.59 - Umido #}
  4.     {% if (now().timestamp() | timestamp_custom('%H')) >= '22' and (now().timestamp() | timestamp_custom('%H')) <= '23'%}
  5.         Umido
  6.     {# Fuori orario #}  
  7.     {% else %}
  8.         Niente
  9.     {% endif %}
  10.  
  11. {# lunedì - 1#}
  12. {% elif (now().timestamp() | timestamp_custom('%w')) == '1' %}
  13.     {# 00:00 / 05:59 - Umido #}
  14.     {% if (now().timestamp() | timestamp_custom('%H')) >= '00' and (now().timestamp() | timestamp_custom('%H')) <= '05' %}
  15.         Umido
  16.    
  17.     {# 22:00 / 23.59 - Residuo #}
  18.     {% elif (now().timestamp() | timestamp_custom('%H')) >= '22' and (now().timestamp() | timestamp_custom('%H')) <= '23' %}
  19.         Residuo
  20.     {# Fuori orario #}  
  21.     {% else %}
  22.         Niente
  23.     {% endif %}
  24.  
  25. {# martedì - 2#}
  26. {% elif (now().timestamp() | timestamp_custom('%w')) == '2' %}
  27.     {# 00:00 / 05:59 - Residuo #}
  28.     {% if (now().timestamp() | timestamp_custom('%H')) >= '00' and (now().timestamp() | timestamp_custom('%H')) <= '05' %}
  29.         Residuo    
  30.     {# 22:00 / 23.59 - Umido #}
  31.     {% elif (now().timestamp() | timestamp_custom('%H')) >= '22' and (now().timestamp() | timestamp_custom('%H')) <= '23' %}
  32.         Umido
  33.     {# Fuori orario #}  
  34.     {% else %}
  35.         Niente
  36.  
  37.     {% endif %}
  38.    
  39.  
  40. {# mercoledì- 3#}
  41. {% elif (now().timestamp() | timestamp_custom('%w')) == '3' %}
  42.     {# 00:00 / 05:59 - Umido #}
  43.     {% if (now().timestamp() | timestamp_custom('%H')) >= '00' and (now().timestamp() | timestamp_custom('%H')) <= '05' %}
  44.         Umido
  45.    
  46.     {# 19:00 / 22:59 - Plastica e Lattine #}
  47.     {% elif (now().timestamp() | timestamp_custom('%H')) >= '19' and (now().timestamp() | timestamp_custom('%H')) <= '22' %}
  48.         Plastica e lattine
  49.     {# Fuori orario #}  
  50.     {% else %}
  51.         Niente
  52.     {% endif %}
  53.  
  54. {# giovedì- 4#}
  55. {% elif (now().timestamp() | timestamp_custom('%w')) == '4' %}
  56.     {# 22:00 / 23:59 - Residuo #}
  57.     {% if (now().timestamp() | timestamp_custom('%H')) >= '22' and (now().timestamp() | timestamp_custom('%H')) <= '23' %}
  58.         Residuo
  59.     {# Fuori orario #}  
  60.     {% else %}
  61.         Niente
  62.     {% endif %}
  63.  
  64. {# venerdì- 5#}
  65. {% elif (now().timestamp() | timestamp_custom('%w')) == '5' %}
  66.     {# 00:00 / 05:59 - Umido #}
  67.     {% if (now().timestamp() | timestamp_custom('%H')) >= '00' and (now().timestamp() | timestamp_custom('%H')) <= '05' %}
  68.         Umido    
  69.     {# 08:00 / 11:59 - Cartone #}
  70.     {% elif (now().timestamp() | timestamp_custom('%H')) >= '08' and (now().timestamp() | timestamp_custom('%H')) <= '11' %}
  71.         Cartone  
  72.     {# 22:00 / 23:59 - Residuo #}
  73.     {% elif (now().timestamp() | timestamp_custom('%H')) >= '22' and (now().timestamp() | timestamp_custom('%H')) <= '23' %}
  74.         Residuo
  75.     {# Fuori orario #}  
  76.     {% else %}
  77.         Niente
  78.     {% endif %}
  79.  
  80. {# sabato- 6#}
  81. {% elif (now().timestamp() | timestamp_custom('%w')) == '6' %}
  82.     {# 00:00 / 05:59 - Residuo #}
  83.     {% if (now().timestamp() | timestamp_custom('%H')) >= '00' and (now().timestamp() | timestamp_custom('%H')) <= '05' %}
  84.         Residuo    
  85.     {# 08:00 / 11:59 - Vetro #}
  86.     {% elif (now().timestamp() | timestamp_custom('%H')) >= '08' and (now().timestamp() | timestamp_custom('%H')) <= '11' %}
  87.         Vetro
  88.     {# Fuori orario #}  
  89.     {% else %}
  90.         Niente
  91.     {% endif %}
  92. {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement