About 90,500 results
Open links in new tab
  1. How to get the current time in seconds since the epoch, in Bash on …

    I need something simple like date, but in seconds since 1970 instead of the current date, hours, minutes, and seconds. date doesn't seem to offer that option. Is there an easy way?

  2. Linux command to get time in milliseconds - Stack Overflow

    Question is asking for Linux command. @alper's answer works fine for date command with GNU coreutils. GNUtize your OSX: Install and Use GNU Command Line Tools on Mac OS X

  3. bash - YYYY-MM-DD format date in shell script - Stack Overflow

    I tried using $(date) in my bash shell script, however, I want the date in YYYY-MM-DD format. How do I get this?

  4. How to convert timestamps to dates in Bash? - Stack Overflow

    I need a shell command or script that converts a Unix timestamp to a date. The input can come either from the first parameter or from stdin, allowing for the following usage patterns: ts2date 1267...

  5. ubuntu - Append date to filename in linux - Stack Overflow

    For example: somefile_25-11-2009.txt or somefile_25Nov2009.txt or anything to that effect Maybe a script will do or some command in the terminal window. I'm using Linux (Ubuntu). The script or …

  6. Using `date` command to get previous, current and next month

    You can get more insight by printing full date calculated for "last month" and "next month". I don't have a unix terminal right now, but my guess is that it just adds/subtracts 30 days to/from now.

  7. linux - Subtract days from a date in Bash - Stack Overflow

    Aug 12, 2013 · I want to subtract "number of days" from a date in Bash. I am trying something like this ..

  8. linux - Get current time in hours and minutes - Stack Overflow

    May 13, 2016 · I'm trying to collect information from a system and I need to get the current time in hours and minutes. Currently I have: date | awk '{print $4}' which outputs something like: 16:18:54 How do I...

  9. Bash: get date and time from another time zone - Stack Overflow

    Nov 7, 2014 · I would want to get the date and time from another time zone (UTC-4) with a bash command, but I don't want to configure it as the default TZ for the system. Is there a simple way to …

  10. Date arithmetic in Unix shell scripts - Stack Overflow

    I need to do date arithmetic in Unix shell scripts that I use to control the execution of third party programs. I'm using a function to increment a day and another to decrement: IncrementaDia()...