 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Derick Rethans's Blog: Obtaining the next month in PHP
by Chris Cornutt January 08, 2010 @ 11:35:12
Derick Rethans (master of all things date and time in PHP) has a new post to his blog showing how to correctly get the "next month" since the date string parser doesn't understand how to use that string directly.
Over and over again PHP users complain that next month in PHP's date-string parser doesn't go to the next month, but instead skips to the one after next month.
He describes what happens internally, how PHP bumps up the month and counts the number of days, and how you can use some of newer features in the PHP 5.3 release to get the first day of the next month. Specifically, this means using the "first day of next month" string for the modify() call on the DateTime object. If you're not on PHP 5.3 yet, Derick also includes a method in the comments to do it a slightly different way.
voice your opinion now!
datetime next month first day
Zend Developer Zone: PHP|tek 2009 Conference Day 1
by Chris Cornutt May 20, 2009 @ 10:48:14
Eli White has posted a first day summary of this year's php|tek conference's Tutorial Day (Day 0) to the Zend Developer Zone:
The first day at PHP|tek this year is traditionally the Tutorial Day, and this year was no exception. Of course, one almost needs to discuss Day 0 as well. The monday before the conference where everyone is arriving and preparing. Day 0, is basically a family reunion at PHP|tek, which is known for being the 'Community' conference. Hanging out in the lobby, you will see numerous hugs and enthusiastic greetings happening. (As well as a few drinks being bought and shared)
He mentions tutorials given by Ed Finkler and an SVN tutorial from Lorna Mitchell and Matthew Weier O'Phinney. These were just two of many - other included a code review session, an in-depth look at caching in PHP apps and application security. Stay tuned to the Zend Developer Zone for more updates to come.
voice your opinion now!
conference day tutorial tek09 phptek09
Symfony Blog: Plugin Developers Day This Saturday!
by Chris Cornutt November 06, 2008 @ 10:28:54
As this new post on the symfony blog points out, their next Plugin Developers Day is happening this weekend on Saturday, November 8th.
Preparations for the coming plugin developers day on Nov. 8th are proceeding apace. I've heard from a number of you who are planning to attend, some planning to start development on new, groudbreaking plugins, others looking to help update existing plugins to work with the latest and greatest version of symfony, and still others just hoping to learn from the lively discussion. All types are welcome!
The event will be centered around the #symfony channel on the Freenode IRC network and is broken up into different sections - creating and releasing a plugin, writing a customizable plugin and coding sprints on new/existing plugins.
voice your opinion now!
plugin developer day symfony framework irc codesprint
Symfony Blog: Plugin Developers Day
by Chris Cornutt October 22, 2008 @ 09:31:17
Kris Wallsmith has posted an announcement to the symfony blog about an upcoming event (happening Saturday November 8th from 3pm-9pm GMT) - Plugin Developers Day.
We will cover a number of plugin-related subjects in depth, including creating and naming a plugin, adding customizable model, form and action classes, unit and functional testing a plugin, packaging and releasing, and what's new in symfony 1.2.
If you've been meaning to try your hand at writing a symfony plugin or have been writing plugins for years, please join some of your fellow developers for a day of learning, collaboration and development.
Its an online event that'll be happening in the #symfony IRC channel on the Freenode IRC network. Nothing to sign up for - just show up ready to learn.
voice your opinion now!
plugin developer day symfony framework irc freenode
ThinkPHP Blog: Put out the age of a date in words
by Chris Cornutt April 11, 2008 @ 10:37:53
On the ThinkPHP blog today, Annika Rabea shares a method for outputting dates in words rather than in the usual numbers most applications use.
Recently, I have to output the age of a date in words and didn't have a framework to work with. The first steps were to parse the given date into an array and create a timestamp with the individual parts. The difference between the timestamp of now and the created timestamp yielded the age in seconds. The result can be used to compare with seconds of a day, week, etc.
The code snippet in the post outputs the difference between two timestamps (then and now) it a bit more friendly way (ex. 4 months, 2 weeks, 2 days).
voice your opinion now!
date format timestamp week month day output
|
Community Events
Don't see your event here? Let us know!
|