Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^8: Gettting the last Friday of every month using Time::Piece

by Jim (Curate)
on Jun 30, 2014 at 23:16 UTC ( #1091778=note: print w/replies, xml ) Need Help??


in reply to Re^7: Gettting the last Friday of every month using Time::Piece
in thread Gettting the last Friday of every month using Time::Piece

What's the difference between Time::Piece::_wday and Time::Piece::day_of_week?

Replies are listed 'Best First'.
Re^9: Gettting the last Friday of every month using Time::Piece
by runrig (Abbot) on Jun 30, 2014 at 23:39 UTC
    What's the difference between Time::Piece::_wday and Time::Piece::day_of_week?
    What's the difference between:
    $t->_wday # 0 = Sunday
    And:
    $t->day_of_week # 0 = Sunday
    Answer: One is spelt "_wday", and the other is spelt "day_of_week". But I thought I already answered that question above (if you read carefully). But you can also tell by the source code (as a last resort):
    *day_of_week = \&_wday;
      But I thought I already answered that question above (if you read carefully).

      You did, and I overlooked it. Mea culpa. I'm sorry.

      But you can also tell by the source code (as a last resort):  *day_of_week = \&_wday;

      I had actually done just that before I posted my question. There's always the source code, of course.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1091778]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2020-10-01 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (177 votes). Check out past polls.

    Notices?