#perl - Mon 19 Feb 2007 between 15:24 and 15:39



Solifugus??
I mean, I really just want to convert day, month, year to date in seconds so I can use localtime to get day of week (1-7) out of it.
PaladinSolifugus: Time::Local, or look up the algorithm to get day of week from date..
Annazdoes TT have build in method to get total number of elements in an array ?
Solifugusworking with dates in perl is extremely difficult.
hobbsSolifugus: er, no? :)
Annaz.max
how clever :)
PaladinSolifugus: not really.. there are many modules that work with dates..
SolifugusPaladin: sure... but one would think there'd only need to be one, simple one.. My ultimate objective is to get week of month.. I thought perhaps looping throught fromt he 1st to current date of month, and counting how many times day or week 7 passes, I could find out.
hobbsSolifugus: no, because one, simple one is too simple to do everything everyone wants
Solifugus: and one, complicated one is way too big for most people to want to ever use
Solifugus: so instead you get 10 ;)
merlynarray.size
not .max
.max is like $#array
Solifugushobbs: simple only means inflexible when little to no forthought is put into how it works.
hobbsSolifugus: or when you're encapsulating a VERY COMPLICATED problem like dealing with dates and times. Try relieving a little of your ignorance.
merlyn& enroute burbank to BUR to PDX to a hospital (what is it?)
Solifugushobbs: it's like Linus's arguments against gnome.. simplification doesn't need to mean dumbing-down or disallowing capabilities.
hobbsexcept GNOME is as dumbed-down a piece of shit as there ever was
and they explicitly go around removing capabilities :)
javamanpretty sure Solifugus said against gnome
hobbsSolifugus: and once again, no. Look at what DateTime does and tell me any of it is unnecessary. And then tell me you don't want something simpler most of the time. :)
Solifugusjavaman and hobbs: I really think the job of programmers is to reduce complexity, not eliminate it.
taelihi, does anyone know of a module which implements a multi-threaded map?
hobbsSolifugus: and I really think you should stop talking out your ass :)
Solifugushobbs: why is it so hard to get week of month (not month divided by 7)?? Why so difficult to simply set a date variable given day, month, year?
hobbsSolifugus: it's not hard.
Solifugus: it is, in fact, incredibly easy.
bennymackSolifugus: you're trying to get the week number? E.g. this week would be 2 you start at zero?
Khisanth"why didn't the inventor of the calendar think of the future programmers?"
taeliie - out= {complex_function} @in; - where the the order in which elements are processed isn't important
hobbsSolifugus: so would you please stop the incoherent babble? :)
Solifugushobbs and bennymack: Yes.. I've spent many hours trying to get week of month.. over the last seven days or so.
hobbs: appearantly.. my ass is smarter than you.
hobbsSolifugus: and how do you define "week of month" ?
bennymackSolifugus: wtf?
something like this?
eval: int( ( localtime )[ 3 ] / 7 );

Page: 4 11 18 25 32 39 46 53 60 67 74 81 88 95 

IrcArchive