# Snippets

## Sprache
Sprache des User ermitteln:
``` bash
local _var_lang=$(locale | grep "LANG=" | cut -d"=" -f2 | cut -d"_" -f1)
```
Code des User ermitteln:
``` bash
local _var_lang=$(locale | grep "LANG=" | cut -d"=" -f2)
```
## Zeit und Datum
Aktuelles Datum ermitteln:
``` bash
local _var_today=$(date +"%d.%m.%Y")
```
Aktuelle Zeit ermitteln:
``` bash
local _var_time=$(date +"%H:%M:%S")
local _var_today=$(date +"%T")
```

https://cloud.holzfeind.ch/index.php/s/MFPppfRZ35SmyYx