[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Another time question



On Wed, Feb 13, 2036 at 04:16:59AM +0100, Lasar Liepins wrote:
> Hi.
> 
> I know this is quite a stupid question, but I can't
> find an answer to this.
> How can I output the current date or time as day.month.year and 
> hour.minute ?
> I think there was a function that went like gettime ( $month, $day, ... ),
> but I can't find it.
> 

In the documentation for Perl's builtin functions, look up localtime() for
getting the date and time, and sprintf() for formatting it in the way you
want.

Ronald

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org