All pastes #36995 Raw Edit

Anonymous

public text v1 · immutable
#36995 ·published 2006-01-16 18:54 UTC
rendered paste body
(14:46:06) Drakas: i am trying to parse
(14:46:07) Drakas: ;) <--Spam *
(14:46:15) Drakas: takes ages 
(14:46:16) Drakas: :D <--Spam *
(14:46:20) duckx0r: A_Jelly_Donut, date() only works with timestamps
(14:46:26) omercnet-work left the room (quit: Client Quit).
(14:46:35) Drakas: i've already rewritten around 3 different scripts that dont work
(14:46:48) Drakas: duckx0r what do you want to do?
(14:46:54) A_Jelly_Donut: duckx0r, then date(mktime(args))
(14:47:02) Drakas: ;) <--Spam *
(14:47:06) duckx0r: A_Jelly_Donut, alright thanks
(14:47:07) Drakas: mktime creates the timestamp
(14:47:27) mage___ left the room (quit: Connection timed out).
(14:47:34) owrflow left the room ("Konversation terminated!").
(14:47:36) duckx0r: I was just wondering if there was an actual function that did it (since PHP has functions for almost everything)
(14:47:50) A_Jelly_Donut: nope, no single function
(14:47:58) duckx0r: date(mktime()) will work though :P
(14:48:02) Drakas: :) <--Spam *
(14:48:05) A_Jelly_Donut: :)
(14:48:09) Drakas: duckx0r if anything, make your own function?
(14:48:10) Drakas: :) <--Spam *
(14:48:29) duckx0r: I could
(14:48:30) duckx0r: :)
(14:48:38) Drakas: function month_name($number) { echo date("M-d-Y", mktime(0, 0, 0, 12, 32, 1997));
(14:48:40) Drakas: wait
(14:49:03) Drakas: function month_name($number) { return date("F", mktime(0, 0, 0, $number, 15, 2000)); }
(14:49:04) Drakas: ;) <--Spam *

* could be easily put on the previous line... easily.