1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 08:35:44 +02:00
tldr/pages.es/windows/get-date.md
Starsoon 82eb0aa1b6
pages.es/windows/*: add Spanish translation (#16716)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-07-20 09:46:34 +03:00

567 B

Get-Date

Obtiene la fecha y hora actuales. Nota: Este comando solo se puede usar a través de PowerShell. Más información: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/get-date.

  • Muestra la fecha y hora actuales:

Get-Date

  • Muestra la fecha y hora actuales con un especificador de formato .NET:

Get-Date -Format "{{yyyy-MM-dd HH:mm:ss}}"

  • Muestra la fecha y hora actuales en UTC y en formato ISO 8601:

(Get-Date).ToUniversalTime()

  • Convierte un timestamp de Unix:

Get-Date -UnixTimeSeconds {{1577836800}}