Find the answer to your Linux question:
Results 1 to 3 of 3
I am new to assembly language in linux, and I have a question. How would I go about getting and printing the system date?...
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3

    Getting the system time

    I am new to assembly language in linux, and I have a question. How would I go about getting and printing the system date?

  2. #2
    Linux Engineer Thrillhouse's Avatar
    Join Date
    Jun 2006
    Location
    Arlington, VA, USA
    Posts
    1,377
    Assembly language? Are you really doing that low level of programming? In Linux, you can obtain the system time with the date command. You may need to use sed or something along those lines to extract just the time field, though.

  3. #3
    Just Joined!
    Join Date
    Feb 2007
    Posts
    3
    yes, unfortunately i am using low level programming. Any hints that you could provide? I was told that there was a time system call called sys_time or something like that that could return the number of seconds that have elapsed since January 1, 1070 at midnight.

Posting Permissions

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