This shows you the differences between two versions of the page.
|
time [2010/01/16 02:16] luke |
time [2010/01/20 12:10] (current) luke |
||
|---|---|---|---|
| Line 64: | Line 64: | ||
| <code php> | <code php> | ||
| $time1 = qCal_Time::factory("4:00"); // will result in 4:00am using the server's timezone | $time1 = qCal_Time::factory("4:00"); // will result in 4:00am using the server's timezone | ||
| - | $time2 = qCal_Time::factory("tomorrow", "GMT"); // will result in whatever tomorrow's date is in GMTÂ | + | $time2 = qCal_Time::factory("now", "America/Los_Angeles"); // will result in the current time in America/Los_Angeles |
| - | $time3 = qCal_Time::factory("now", "America/Los_Angeles"); // will result in the current time in America/Los_Angeles | + | |
| </code> | </code> | ||