Author Topic: to set and display system date.  (Read 6000 times)

Offline jishnu@123

  • Jr. Member
  • *
  • Posts: 3
to set and display system date.
« on: January 06, 2015, 06:17:02 AM »
hai everyone
i want a example code  by using nasm to set and display system date.
thank you :)
     

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: to set and display system date.
« Reply #1 on: January 06, 2015, 07:08:43 AM »
What OS? You were asking about "elf", so maybe 32-bit Linux? Are you willing to use C library routines? Show us how far you can get with this by yourself...

I have a program to display (not set) time and date (32-bit Linux), but it's broken! I thought it was working fine, but I tried it on New Year's Eve and it informed me that it was "Jan 00 2015". Oops! I think I see what's wrong with it, but before I could fix it, midnight had passed and it went to "Jan 01" as expected. I may have to wait until next New Year's Eve to fix it...

Best,
Frank