Debian Codegraph @

intents/responses/fi/HassGetCurrentDate.yaml

raw symbols SCIP
1 language: fi
2 responses:
3 intents:
4 HassGetCurrentDate:
5 default: >
6 {% set months = {
7 1: '1.',
8 2: '2.',
9 3: '3.',
10 4: '4.',
11 5: '5.',
12 6: '6.',
13 7: '7.',
14 8: '8.',
15 9: '9.',
16 10: '10.',
17 11: '11.',
18 12: '12.',
19 } %}
20 {% set ordinal = {
21 1: '1.',
22 2: '2.',
23 3: '3.',
24 4: '4.',
25 5: '5.',
26 6: '6.',
27 7: '7.',
28 8: '8.',
29 9: '9.',
30 10: '10.',
31 11: '11.',
32 12: '12.',
33 13: '13.',
34 14: '14.',
35 15: '15.',
36 16: '16.',
37 17: '17.',
38 18: '18.',
39 19: '19.',
40 20: '20.',
41 21: '21.',
42 22: '22.',
43 23: '23.',
44 24: '24.',
45 25: '25.',
46 26: '26.',
47 27: '27.',
48 28: '28.',
49 29: '29.',
50 30: '30.',
51 31: '31.',
52 } %}
53 {% set weekday = [
54 'maanantai',
55 'tiistai',
56 'keskiviikko',
57 'torstai',
58 'perjantai',
59 'lauantai',
60 'sunnuntai'
61 ] %}
62 Tänään on {{ weekday[slots.date.weekday()] }} {{ ordinal[slots.date.day] }}{{ months[slots.date.month] }}{{ slots.date.year }}