Parse Unix date !
[email protected] (AY)
| Newsgroups | perl.beginners |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
I'm required to grab some value from table in sybase based on the timestamp of the file generated in Unix ( solaris ). Time format in Sybase is say ( Mar 22 2008 10:41:59:662 AM). I'm able to format the time stamp of the file in this format ( Mar 22 2008 10:41:59 AM) but not the *milliseconds*. 1) Would 'ctime' or 'atime' or 'mtime' return milliseconds as well? 2) If it does how can we Parse the milliseconds? If I remember right I do something like UnixDate(ParseDate($fileTimeStamp), "% % %") etc.. I'm not sure what %?? to be used inorder to get *milliseconds*.