Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
Adding Time to a Date Command...
Results 1 to 3 of 3

Thread: Adding Time to a Date Command...

  1. #1

    Adding Time to a Date Command...

    When I do an ls -l, I receive a date or 08:00. Can anyone tell me how I might add 17 minutes to this date to use in a test statement??

  2. #2
    Administrator Moderator
    Member
    starfish's Avatar
    Join Date
    Apr 2004
    Posts
    141
    Use the "touch -t TIME filename" command. Use the man pages for more details.

  3. #3
    Thanks starfish, but the command listed above runs in a script every 15 minutes. The touch -t command allows me to change the date to a constant, but will not add 17 minutes to the timestamp of the file everytime it is run.

Similar Threads

  1. Date and time display
    By fossy in forum Announcements and Suggestions
    Replies: 9
    Last Post: 04-28-2008, 04:36 AM
  2. Command to know last access and modification time
    By tech291083 in forum Redhat / Fedora
    Replies: 3
    Last Post: 05-15-2007, 09:57 AM
  3. Random Date and Time
    By dhaight in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 08-09-2003, 01:10 AM
  4. Long time listener, first time caller
    By bdl in forum General Chat
    Replies: 4
    Last Post: 09-08-2001, 09:32 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •