You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by ipshita chatterji <si...@gmail.com> on 2011/09/12 14:06:40 UTC

How to get current system date Hi

Hi,
How do I query for current system date in unix format/ISO date format from
the system? I could not find any inbuilt function for this. Can you please
give some pointers?
Thanks,
Ips

Re: How to get current system date Hi

Posted by Mark Roddy <ma...@gmail.com>.
%default CurrentTime `date +%s`

Then adjust the arguments to 'date' based upon the format you need.

-Mark


On Mon, Sep 12, 2011 at 8:06 AM, ipshita chatterji <si...@gmail.com> wrote:
> Hi,
> How do I query for current system date in unix format/ISO date format from
> the system? I could not find any inbuilt function for this. Can you please
> give some pointers?
> Thanks,
> Ips
>