GetLocalTime() for Linux/Unix

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ever Olano

    #1

    GetLocalTime() for Linux/Unix

    Hi, on Windows, I use GetLocalTime() to get the current time in terms of
    year, month, day, hour, minute, second, milliseconds. Is there an
    equivalent function on Linux and Unix?

    Thanks!


  • Ever Olano

    #2
    Re: GetLocalTime() for Linux/Unix

    I think I just found the answer to my own question: localtime(). :)

    "Ever Olano" <ever@nospam.co m> wrote in message
    news:2kgpscF29e 36U1@uni-berlin.de...[color=blue]
    > Hi, on Windows, I use GetLocalTime() to get the current time in terms of
    > year, month, day, hour, minute, second, milliseconds. Is there an
    > equivalent function on Linux and Unix?
    >
    > Thanks!
    >
    >[/color]


    Comment

    • Ever Olano

      #3
      Re: GetLocalTime() for Linux/Unix

      And in fact, localtime() is available on Windows, too. :)

      "Ever Olano" <ever@nospam.co m> wrote in message
      news:2kgq69F2a6 19U1@uni-berlin.de...[color=blue]
      > I think I just found the answer to my own question: localtime(). :)
      >
      > "Ever Olano" <ever@nospam.co m> wrote in message
      > news:2kgpscF29e 36U1@uni-berlin.de...[color=green]
      > > Hi, on Windows, I use GetLocalTime() to get the current time in terms of
      > > year, month, day, hour, minute, second, milliseconds. Is there an
      > > equivalent function on Linux and Unix?
      > >
      > > Thanks!
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...