Is there a shell script function that takes the date and time (time zone) and language that are configured on the computer?
Is there a shell script function that takes the date and time (time zone) and language that are configured on the computer?
This should be trivial, in fact:
#!/bin/sh
# script /tmp/tes.sh
language=$LANG # Idioma
date=$(date +"%d-%m-%Y %H:%M:%S") # Data e hora local
timezone_offset=$(date +%z) # Fuso horário