codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  What does this do?  jaginbox at 23:55 on Sunday, August 10, 2008
 

Hi All,

What does the following command do?

perl -MPOSIX -e"print strftime('%Y-%m-%d', localtime(time - 86400))"

TIA
Jaginbox

  Re: What does this do?  mimir at 14:24 on Monday, August 11, 2008
 

-e means its a one liner, meaning what follows it be executed directly, even if written in the shell.

86400 is the number of seconds in a day,
time is probably a reference to current time,
so the time there is probably now minus one day.

and the %Y %m and %d are probably deciding how the time is to be displayed.

as for the rest, i dont know.



  Re: What does this do?  jaginbox at 20:17 on Saturday, August 16, 2008
 

Thanks for the reply.
I was looking for the MPOSIX actually.
Guess its a standard command.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: What does this do?
•  Narrowing Advanced Search
•  Creating an Printer Friendly Page of an Active Server Document
•  Re: import contacts of msn/yahoo
•  Palm Inc. Online Recruitment Event
•  Palm Inc. Online Recruitment Event
•  Palm Inc. Online Recruitment Event
•  Palm Inc. Online Recruitment Event
•  Re: Folder name with


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008