Find the answer to your Linux question:
Results 1 to 4 of 4
hello everybody actually i am using linux almost 2 years you know i am very fanatic with GNOME can ask you something how using date ? could you give me ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2004
    Location
    Indonesia
    Posts
    84

    date, hours, minutes, seconds


    hello everybody

    actually i am using linux almost 2 years
    you know i am very fanatic with GNOME

    can ask you something

    how using date ?
    could you give me some sample for me
    i want to set date, hours, minutes, seconds
    thanks for your concerning my questions

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    If you want to set the date to what is currently the time here at least, use this command:
    Code:
    date 020516242004.35
    That is: 02 = February, 05 = The fifth day in Feb, 16 = the hour, 24 = the minute, 2004 = the year and .35 = the seconds.

    Is that what you meant?

  3. #3
    Linux Engineer
    Join Date
    Apr 2003
    Location
    Sweden
    Posts
    796
    You can also reformat the actual date in a number of ways.... like this

    Code:
    DATE=`date +20%y.%m.%d`
    Will give you 2004.02.06
    
    TIME=`date +%H:%M:%S`
    Will give you 09:28:33
    Regards

    Andutt

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Feb 2004
    Location
    Indonesia
    Posts
    84
    wow ...........

    after typed 020619432004.15 what you advised to me it works,

    thanks

Posting Permissions

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