Αποτελέσματα Αναζήτησης
In bash (>=4.2) it is preferable to use printf's built-in date formatter (part of bash) rather than the external date (usually GNU date). Note that invoking a subshell has performance problems in Cygwin due to a slow fork() call on Windows.
10 Οκτ 2024 · The Linux date command displays and sets the system date and time. It can format the output in various ways, show the current date, time, or print customized formats using format specifiers.
27 Φεβ 2007 · Formatting date in linux for in custom format: Explains how to use and format the date command on Linux or Unix shell scripts to display custom date/time.
21 Αυγ 2010 · date ${RFC3339_FORMAT} -d "1970-01-01 UTC ${EPOCH} seconds" #date -d @${EPOCH} --rfc-3339=seconds.
10 Μαΐ 2020 · This post provides examples on how to do date operations and format dates on Linux and macOS with the date and awk command lines and with the printf bash shell command builtin. 👉 All the Linux options presented in this post are fully compatible with all Linux distributions deployed on Windows 10 with WSL.
1 Ιουν 2019 · The date command displays or sets the system date. It is most commonly used to print the date and time in different formats and calculate future and past dates.
12 Ιουλ 2024 · To set the date and time in Linux, use the date command with the appropriate format. For example, to set the date to 25th December 2024 and the time to 10:30 AM: sudo date -s "2024-12-25 10:30:00" You may need to restart the timedatectl service to apply changes: sudo systemctl restart systemd-timesyncd How to set date format in Linux?