4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:time — newest first
  • go - How to format current time using a yyyyMMddHHmmss format? - Stack Overflow

    t := time.Now()
    formatted := fmt.Sprintf("%d-%02d-%02dT%02d:%02d:%02d",
    t.Year(), t.Month(), t.Day(),
    t.Hour(), t.Minute(), t.Second())

    November 14, 2022 - permalink - https://stackoverflow.com/questions/20234104/how-to-format-current-time-using-a-yyyymmddhhmmss-format
    date go now time
  • Pour connaitre depuis combien de temps une socket est ouverte

    On recupere le pid du processus qui a ouvert la socket :
    netstat -laptun
    Puis :
    $ ps -eo pid,etime | grep 8084
    8084 3-02:02:59

    ici 3 jours, 2 heures, 2 minutes...!

    January 30, 2014 - permalink - https://links.infomee.fr/shaare/ef8W_g
    ps socket time
  • bash - How do you find the age of a long-running Linux process and then kill it? - Stack Overflow
    October 10, 2013 - permalink - http://stackoverflow.com/questions/6134/how-do-you-find-the-age-of-a-long-running-linux-process-and-then-kill-it
    bash etime process time
  • Aidan Lister » Blog Archive » Making time periods readable

    Une fonction pour calculer le temps écoulé entre 2 timestamp

    February 3, 2012 - permalink - http://aidanlister.com/2004/04/making-time-periods-readable/
    php time