Grimoire-
Command
.es

GNU+Linux command memo

Convert timestamp to human readable date

date Python code

Index
  • 1. date
  • 2. Using Python

Convertir un horodatage unix / epoch en date lisible

1. date

$ date -d "@1516817552"

Can produce:

mercredi 24 janvier 2018, 19:12:32 (UTC+0100)

2. Using Python

$ python -c 'import time; time.strftime(\"%Y-%m-%d %H:%M:%S\",time.localtime(int(1516817552)))'

Can produce:

2018-01-24 19:12:32

Selection

  • Check SSD remaining lifetime
  • Save data from lost partition
  • Cipher external Android SDcard
  • Recommanded Firefox addons
  • doc_crawler.py : Extract site PDFs
  • 20 mémos "ligne de commande"
  • [Mémo 8] compression de fichiers
  • [Mémo 10] explorer le matériel
  • Tectonique de la pâte thermique
  • Doc. AsciiDoctor en français
  Articles | Command.es | Mémos

Themes  

  • Artix
  • Debian
  • Fairphone
  • Firefox
  • Git
  • JavaScript
  • KVM
  • Memo
  • Nim
  • Python
  • SSH
  • Tor
  • Xorg
  • adminsys
  • android
  • asciidoc
  • benchmark
  • bluetooth
  • code
  • comfort
  • compression
  • database
  • date
  • game
  • hardware
  • install
  • metadata
  • mount
  • music
  • mutt
  • network
  • optimize
  • regex
  • repair
  • security
  • shell
  • storage
  • vim

Sponsor

Meta-Press.es: search-engine

Liberapay   Patreon

Support via BTC 12z7pK5YFcmG7PGJ985dFtnRzwtxDVDmwc

A propos  Flux