On Wed, Mar 2, 2011 at 10:56 PM, Simon Walter si...@gikaku.com wrote:
On Thursday, March 03, 2011, Ryan Lange wrote:
[date_format] = string(5) d.M.y
I may be very very wrong about this, but wouldn't that be allowing a single
digit for for any of the date parts?
Here is what I read:
M
I'm having an issue with Zend_Date (and, by extension, Zend_Validate_Date)
that would seem to qualify as unexpected behavior, but I'm not sure if
it's legitimately unexpected or if it's my expectations that are out of
whack.
First off, some basic information: I'm seeing this issue in ZF 1.11.3 on
On Thursday, March 03, 2011, Ryan Lange wrote:
[date_format] = string(5) d.M.y
I may be very very wrong about this, but wouldn't that be allowing a single
digit for for any of the date parts?
Here is what I read:
M Month, one or two digit
d Day of the month, one or two digit
y
Hi.
I wanted to use Zend_Date to set day of the week and get Zend_Date object
which represents that date.
I looked in setDay(), but it was working for setting day of a month (1-31)
or setting a string representation of a day for given locale. Why I cant do
sth like Zend_Date-setDayOfWeek(3); //
Hi,
I don't know if it is an elegant option but what you could do
is $zfDate-setWeekday($weekday+1);
On Sun, Aug 22, 2010 at 1:31 AM, debussy007 debussy...@gmail.com wrote:
Hi,
I have stored a schedule in database, which contains weekdays and time
slots.
I want to create a date and set
Am 22.08.2010 01:31, schrieb debussy007:
Hi,
I have stored a schedule in database, which contains weekdays and time
slots.
I want to create a date and set the weekday :
$zfDate = new Zend_Date();
$zfDate-setWeekday($weekday);
Just do:
$zfDate-setWeekday($weekday % 7);
The problem
Hi,
$zfDate1-compareDate($zfDate2) === 0 VS
$zfDate1-get('MMdd') === $zfDate2-get('MMdd')
Loop using if($zfDate1-compareDate($zfDate2) === 0)
2010-08-16T19:06:56+02:00 DEBUG (7): PHP 2 : 0.89702701568604 seconds
2010-08-16T19:06:59+02:00 DEBUG (7): PHP 2 : 1.3131721019745 seconds
Hi,
I came across the following error :
$date = 20072010-09:40;
$zfDatetime = new Zend_Date($date, ddMM-H:m);
$logger-debug($zfDatetime-get(Zend_Date::WEEKDAY_SHORT)); // the script
seems to run endlessly
Fatal error: Maximum execution time of 30 seconds exceeded in
Hi all!
I want to know what is the date of the first day of the week. I did this:
$currDate = new Zend_Date();
$currDate-sub($currDate-get(Zend_Date::WEEKDAY_DIGIT)- 1,Zend_Date::DAY);
var_dump($currDate-get('Y-m-d'));
But, the result is not so good. The year and the day is good. The
On Saturday 17 Apr 2010 13:40:43 András Csányi wrote:
Hi all!
I want to know what is the date of the first day of the week. I did this:
$currDate = new Zend_Date();
$currDate-sub($currDate-get(Zend_Date::WEEKDAY_DIGIT)-
1,Zend_Date::DAY); var_dump($currDate-get('Y-m-d'));
But, the
On Sat, Apr 17, 2010 at 1:46 PM, Jurian Sluiman
subscr...@juriansluiman.nl wrote:
On Saturday 17 Apr 2010 13:40:43 András Csányi wrote:
Hi all!
I want to know what is the date of the first day of the week. I did this:
$currDate = new Zend_Date();
On 17 April 2010 14:03, till klimp...@gmail.com wrote:
The easiest way is still to do the following:
Zend_Date::setOptions(array('format_type' = 'php'));
... and then use PHP-like identifiers to do your date juggling.
It sounds like a title of a motivation picture. :)
--
- -
-- Csanyi
-general] Zend_Date with Zend_Locale for en_SG
I have a calendar system to input date (eg. 26/03/2010) and I need
Zend_Date::isDate() with Zend_Locale to check whether the input date is in
correct format.
This system runs in Singapore so I set the Zend_Locale to 'en_SG' but the
problem comes
I have a calendar system to input date (eg. 26/03/2010) and I need
Zend_Date::isDate() with Zend_Locale to check whether the input date is in
correct format.
This system runs in Singapore so I set the Zend_Locale to 'en_SG' but the
problem comes. The Zend_Date::isDate() returns a false.
I have
Is there a way to create a Zend_Date value, tell Zend_Date the value it is
getting is UTC, and then specify a new time zone and have the time / date
adjust accordingly (reading through docs, it looks like no). Or do I have to do
this manually? (datetimes are stored with timezone in DB and
Is it just me or does Zend_Date require a ton of memory?
var_dump(memory_get_usage());
$date = new Zend_Date();
var_dump(memory_get_usage());
Gives me:
int 9345896
int 13966200
That's a jump of 4620304 bytes!
Cheers,
David
--
View this message in context:
How to implement this method?
$weekInfo = Zend_Locale_Data::getList($locale, 'week');
Is this the only way?
--
regards
takeshin
--
View this message in context:
http://n4.nabble.com/Zend-Date-isWeekend-tp1018598p1018598.html
Sent from the Zend Framework mailing list archive at Nabble.com.
I want to display a current month name in Polish language.
So I use Zend_Date::get(Zend_Date::MONTH_NAME);
but it displays 'stycznia' (specified in Zend_Locale_Data .. format/wide)
What I really should display is 'styczeń',
specified in Zend_Locale_Data .. stand-alone/wide
Is it intended, or a
: [fw-general] Zend_Date::isWeekend()
How to implement this method?
$weekInfo = Zend_Locale_Data::getList($locale, 'week');
Is this the only way?
--
regards
takeshin
--
View this message in context:
http://n4.nabble.com/Zend-Date-isWeekend-tp1018598p1018598.html
Sent from the Zend Framework
I'm displaying a calendar.
One day by day.
My day is an instance of Zend_Date.
If a day is a weekend day, I want to display it in em
My definition of weekend days is that these the days between weekendStart
and WeekendEnd,
as defined in Zend_Locale_Data['week']
--
regards
takeshin
--
View
on a format and not be displayed stand-alone.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: takeshin admi...@gmail.com
To: fw-general@lists.zend.com
Sent: Wednesday, January 20, 2010 7:01 PM
Subject: [fw-general] Zend_Date
: Re: [fw-general] Zend_Date::isWeekend()
I'm displaying a calendar.
One day by day.
My day is an instance of Zend_Date.
If a day is a weekend day, I want to display it in em
My definition of weekend days is that these the days between weekendStart
and WeekendEnd,
as defined in Zend_Locale_Data
Hi,
I'm using Zend_Date in combination with data from an MySQL-table. I often get
the following date values from MySQL (due to schema changes made after the
creation of the tables): -00-00 and -00-00 00:00
Can I work with them in Zend_Date like any other date or should I extend
Framework
http://www.thomasweidner.com
- Original Message -
From: Marcus Stöhr daf...@soundtrack-board.de
To: fw-general@lists.zend.com
Sent: Monday, January 18, 2010 11:36 AM
Subject: [fw-general] Zend_Date working with dates like '-00-00'
Hi,
I'm using Zend_Date in combination
daf...@soundtrack-board.de
To: Thomas Weidner thomas.weid...@gmx.at
Sent: Monday, January 18, 2010 2:06 PM
Subject: Re: [fw-general] Zend_Date working with dates like '-00-00'
Thank you, Thomas.
And there was another situation coming to mind: How does Zend_Date handle
partial dates, e.g
Hi,
is is correct, that Zend_Date::now($locales)-set('00:00:00',
Zend_Date::TIMES) will return a string instead of an Zend_Date object?
--
Regards,
Thomas
Hello,
Just wondering, why would a simple call on Zend_Date require Caching?
I get:
EXCEPTION INFORMATION:
MESSAGE: Could not determine temp directory, please specify a cache_dir
manually
when I try to call new Zend_Date();
The second question:
Since Cache is not one in one of the
I'm not sure what's going on with Zend_Date, but as for the Cache resource,
here's a simple one I've put together:
?php
/**
* Cache resource
*
* @author Hector Virgen
*/
class Default_Resource_Cache extends
Zend_Application_Resource_ResourceAbstract
{
/**
* Creates a cache and returns it
Thank you very much Hector,
I was also assisted from:
http://www.zfsnippets.com/snippets/view/id/72/bootstrap-cache-resource
There is a configuration line:
/// use as default locale cache
if (isset($options['isDefaultLocaleCache'])
}
which activates the Zend_Locale cache as well.
Thomas Weidner wrote:
It's a regional topic.
For more informations look into unicodes database:
http://unicode.org/cldr
It a little bit off topic already :)
I'm interested in function like:
function getFirstDayOfTheWeek($country)
...
Of course, I can allow user to set this manually,
It's a regional topic.
For more informations look into unicodes database:
http://unicode.org/cldr
It a little bit off topic already :)
I'm interested in function like:
function getFirstDayOfTheWeek($country)
...
Of course, I can allow user to set this manually,
but I'm just looking for
I think 0 is sunday.. 1 is monday ..
--Messaggio originale--
Da: takeshin
A:fw-general@lists.zend.com
Oggetto: Re: [fw-general] Zend_Date first day of the week
Inviato: 8 Dic 2009 00:27
Thomas Weidner wrote:
It is possible.
But your expectations are wrong. ;-)
No comprendo
...@fastwebnet.it
To: fw-general@lists.zend.com
Sent: Tuesday, December 08, 2009 1:45 AM
Subject: [fw-general] R: Re: [fw-general] Zend_Date first day of the week
I think 0 is sunday.. 1 is monday ..
--Messaggio originale--
Da: takeshin
A:fw-general@lists.zend.com
Oggetto: Re: [fw-general] Zend_Date
vince. wrote:
Try:
date_default_timezone_set('Europe/Berlin');
$date = new Zend_Date();
// Output of the current timestamp
print $date;
print br /;
print $date-get(Zend_Date::WEEKDAY);
Thanks.
I Always forget to set correct timezone…
--
Sorry, but this is not what's I'm asking for.
The question is how to get first day of the week for the specified timezone,
which returns *always* 0 (Sunday) for America
and *always* 1 (Monday) for Poland.
--
regards
takeshin
--
View this message in context:
-general@lists.zend.com
Sent: Monday, December 07, 2009 9:51 AM
Subject: Re: [fw-general] Zend_Date first day of the week
Sorry, but this is not what's I'm asking for.
The question is how to get first day of the week for the specified
timezone,
which returns *always* 0 (Sunday) for America
W dniu 2009-12-07 10:33, Thomas Weidner [via Zend Framework Community]
pisze:
$date-getWeekday(0);
Note that NOT EVERY COUNTRY defines 0 to be sunday... it depends on the
country if 0 is a sunday or another day.
Thank you. That's all in the manual.
But, simply put:
How to determine
- Original Message -
From: takeshin admi...@gmail.com
To: fw-general@lists.zend.com
Sent: Monday, December 07, 2009 3:25 PM
Subject: Re: [fw-general] Zend_Date first day of the week
$date-getWeekday(0);
Note that NOT EVERY COUNTRY defines 0 to be sunday... it depends
, Thomas Weidner thomas.weid...@gmx.at wrote:
- Original Message - From: takeshin admi...@gmail.com
To: fw-general@lists.zend.com
Sent: Monday, December 07, 2009 3:25 PM
Subject: Re: [fw-general] Zend_Date first day of the week
$date-getWeekday(0);
Note that NOT EVERY COUNTRY defines
A.J. Brown-3 wrote:
I think his question is:
How do I determine (automagically) what the first day of the week is,
for a given LOCALE?
I think he wants something like this:
Zend_Locale::setLocale( LOCALE );
Zend_Date::getFirstWeekday(); // returns 0 for Americas, 1 for Germany
- Original Message -
From: takeshin admi...@gmail.com
To: fw-general@lists.zend.com
Sent: Monday, December 07, 2009 10:31 PM
Subject: Re: [fw-general] Zend_Date first day of the week
A.J. Brown-3 wrote:
I think his question is:
How do I determine (automagically) what the first
Thomas Weidner wrote:
It is possible.
But your expectations are wrong. ;-)
No comprendo, Senior ;)
Thomas Weidner wrote:
It's a regional topic.
For more informations look into unicodes database: http://unicode.org/cldr
It a little bit off topic already :)
I'm interested
Is it possible to get first day of the week
for the specified locale using Zend_Date?
Zend_Date::WEEKDAY_FIRST ?
--
regards
takeshin
--
View this message in context:
http://n4.nabble.com/Zend-Date-first-day-of-the-week-tp954180p954180.html
Sent from the Zend Framework mailing list archive at
Hi,
Try:
date_default_timezone_set('Europe/Berlin');
$date = new Zend_Date();
// Output of the current timestamp
print $date;
print br /;
print $date-get(Zend_Date::WEEKDAY);
On Mon, Dec 7, 2009 at 9:15 AM, takeshin admi...@gmail.com wrote:
Is it
umpir...@gmail.com
To: Thomas Weidner thomas.weid...@gmx.at
Cc: fw-general@lists.zend.com
Sent: Wednesday, November 11, 2009 8:47 AM
Subject: Re: [fw-general] Zend_Date problem
How do I set timezone to affect Zend_Date component?
I use zend date to create view helper for date formatting.
Regards
Weidner thomas.weid...@gmx.at
Cc: fw-general@lists.zend.com
Sent: Wednesday, November 11, 2009 8:47 AM
Subject: Re: [fw-general] Zend_Date problem
How do I set timezone to affect Zend_Date component?
I use zend date to create view helper for date formatting.
Regards,
Saša Stamenković
Weidner thomas.weid...@gmx.at
Cc: fw-general@lists.zend.com
Sent: Wednesday, November 11, 2009 8:47 AM
Subject: Re: [fw-general] Zend_Date problem
How do I set timezone to affect Zend_Date component?
I use zend date to create view helper for date formatting.
Regards,
Saša Stamenković
On Wed, Nov 11
Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message - From: Саша Стаменковић umpir...@gmail.com
To: Thomas Weidner thomas.weid...@gmx.at
Cc: fw-general@lists.zend.com
Sent: Wednesday, November 11, 2009 9:44 AM
Subject: Re: [fw-general] Zend_Date
Hi zf community.
This code:
$date = new Zend_Date(null, null, $locale);
$date-setTimestamp(1256198496);
echo $date-getDate()-toString(Zend_Date::DATES);
gives date 21.10.2009. for sr_RS locale (similar for other locales), for
en_GB it gives 21 Oct 2009.
I expect 22 Oct 2009. it's whole day
Timezone ?
Mfg
Thomas
- Original Message -
From: umpirsky umpir...@gmail.com
To: fw-general@lists.zend.com
Sent: Tuesday, November 10, 2009 2:23 PM
Subject: [fw-general] Zend_Date problem
Hi zf community.
This code:
$date = new Zend_Date(null, null, $locale);
$date-setTimestamp
Try
Zend_Date::setOptions(array('fix_dst' = true));
before
$date = new Zend_Date();
umpirsky wrote:
Hi zf community.
This code:
$date = new Zend_Date(null, null, $locale);
$date-setTimestamp(1256198496);
echo $date-getDate()-toString(Zend_Date::DATES);
gives date 21.10.2009. for
@Thomas Weidner
*
*
date_default_timezone_set('Europe/Stockholm'); is in bootstrap.
@kobsu
*
*
*Same result :(
*
Regards,
Saša Stamenković
On Tue, Nov 10, 2009 at 6:20 PM, kobsu ko...@iki.fi wrote:
Try
Zend_Date::setOptions(array('fix_dst' = true));
before
$date = new Zend_Date();
informations ?
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: Саша Стаменковић umpir...@gmail.com
To: kobsu ko...@iki.fi
Cc: fw-general@lists.zend.com
Sent: Wednesday, November 11, 2009 7:59 AM
Subject: Re: [fw-general
://www.thomasweidner.com
- Original Message - From: Саша Стаменковић umpir...@gmail.com
To: kobsu ko...@iki.fi
Cc: fw-general@lists.zend.com
Sent: Wednesday, November 11, 2009 7:59 AM
Subject: Re: [fw-general] Zend_Date problem
@Thomas Weidner
*
*
date_default_timezone_set('Europe
Hi.
This code example:
?php
require_once 'Zend/Date.php';
$time = 1262476800;
$date = new Zend_Date(null, null, null);
$date-setTimestamp($time);
echo $date-toString('Y-d-m');
echo 'br';
echo date('o\-j\-i', $time);
echo 'br';
echo gmdate('o\-j\-i', $time);
echo 'br';
echo date('Y-d-m',
umpirsky wrote:
expected result is 2010-03-01. The whole year is missed :)
Quoting PHP manual:
---
o - ISO-8601 year number. This has the same value as /Y/, except that if
the ISO week number (/W/) belongs to the previous or next year, that
year is used instead. (added in PHP 5.1.0)
---
Great, thanks.
Regards,
Saša Stamenković
On Tue, Oct 27, 2009 at 12:35 PM, drm d...@melp.nl wrote:
umpirsky wrote:
expected result is 2010-03-01. The whole year is missed :)
Quoting PHP manual:
---
o - ISO-8601 year number. This has the same value as /Y/, except that if
the ISO week
You can use the -toString() method to output custom date formats like this:
$date = new Zend_Date(); // Passing no params sets to current date.
$date-toString('-MM-dd HH:mm:ss');
See http://framework.zend.com/manual/en/zend.date.constants.html#zend.date.constants.selfdefinedformats for date
+1 : I have the same problem with the age calculation
On Tue, Apr 7, 2009 at 7:24 PM, Daryl Handley darylhand...@gmail.comwrote:
milesap wrote:
Hello,
I'm fairly new to Zend Framework, so forgive me if this is a really easy
question. I have been looking everywhere for a solution. I am
Note the difference between Y and y.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: milesap mile...@gmail.com
To: fw-general@lists.zend.com
Sent: Tuesday, April 07, 2009 4:51 AM
Subject: [fw-general] Zend_Date
milesap wrote:
Hello,
I'm fairly new to Zend Framework, so forgive me if this is a really easy
question. I have been looking everywhere for a solution. I am trying to get
the difference between the current date and a persons birthday to see how
old they are.
$date = new Zend_Date();
Hello,
I'm fairly new to Zend Framework, so forgive me if this is a really easy
question. I have been looking everywhere for a solution. I am trying to get
the difference between the current date and a persons birthday to see how
old they are.
$date = new Zend_Date();
Hi list,
I get the exception “Unable to parse the date format string 'ISO_8601'
at letter 'O'” when executing the following:
$date = new Zend_Date('2009-03-09 09:20', 'ISO_8601');
This was working properly a few days ago, what could be the problem?
Thanks,
Ádám
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
$date = new Zend_Date('2009-03-09 09:20', Zend_Date::ISO_8601);
...
: ___ _ ___ ___ ___ _ ___:
: | \ /_\ / __| _ \ _ (_) \ :
: | |) / _ \\__ \ _/ / | |) | :
: |___/_/:\_\___/_| |_|_\_|___/ :
$date = new Zend_Date('2009-03-09 09:20', Zend_Date::ISO_8601);
Ah, so it’s value had changed to 'c'…
Thanks, DASPRiD!
Ádám
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Well, just don't use internal values but the public constants.
...
: ___ _ ___ ___ ___ _ ___:
: | \ /_\ / __| _ \ _ (_) \ :
: | |) / _ \\__ \ _/ / | |) | :
: |___/_/:\_\___/_| |_|_\_|___/ :
Hi guys,
I have tried to measure bottlenecks in my application and I've noticed
that Zend_Date seems to be an heavy component. I have enabled the
cache and applied most of the performances tips suggested in the
manual, however this component seems to be slow yet.
I have also found the
Hello,
webPragmatist wrote:
I'm having an issue... I can't format using the PHP date() function
convention when calling $date-toString()
br /br /
Here's what I have:
pre
$tokenExpiry = new Zend_Date();
$tokenExpiry-add(3, Zend_Date::DAY);
Hi list,
I may be going about this the wrong way, so if that's the extent of
the problem, then I'd appreciate some pointers. Btw, I'm using ZF
1.7.2.
I create a zend_date object, use setdate and then try to use settime,
but get an exception message of parameter $date must be set, null is
not
Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: Tim Rupp caphrim...@gmail.com
To: fw-general@lists.zend.com
Sent: Tuesday, January 06, 2009 8:27 PM
Subject: [fw-general] zend_date settime question
Hi list,
I may be going about
try to add seconds then it works:
$expireTime = 01:30:00 AM;
$date-setTime($expireTime, 'hh:mm:ss');
Tim Rupp wrote:
Hi list,
I may be going about this the wrong way, so if that's the extent of
the problem, then I'd appreciate some pointers. Btw, I'm using ZF
1.7.2.
I create a
-general@lists.zend.com
Sent: Tuesday, January 06, 2009 8:27 PM
Subject: [fw-general] zend_date settime question
Hi list,
I may be going about this the wrong way, so if that's the extent of
the problem, then I'd appreciate some pointers. Btw, I'm using ZF
1.7.2.
I create a zend_date object
Yeah, I figured I could do that if I exhausted all my other options, I
was hoping there would be a cleaner solution though. I'd like to not
massage the time like that if I can avoid it.
Thanks for the tip though.
Tim
On Tue, Jan 6, 2009 at 1:55 PM, PHPScriptor cont...@phpscriptor.com wrote:
I checked the zend code. The problem sits here:
Data.php
(line 2776 function private function _time)
$parsed = Zend_Locale_Format::getTime($time, array('date_format' = $format,
'locale' = $locale, 'format_type' = 'iso'));
you get back an array with $parsed['hour']=01 and $parsed['minute']=30
Hi guys,
I'm just doing a bit of work with the Dojo date and time pickers, and it's
all going wonderfully, and I decided to use the Zend_Date::ISO_8601 method
for formatting the output from MySQL, which works perfectly well, all except
for the fact it's appending a timezone, which then goes and
: Cameron themsel...@gmail.com
To: Zend Framework - General fw-general@lists.zend.com
Sent: Monday, December 15, 2008 5:59 AM
Subject: [fw-general] Zend_Date and Timezones - how do I turn them off?
Hi guys,
I'm just doing a bit of work with the Dojo date and time pickers, and it's
all going
Framework
http://www.thomasweidner.com
- Original Message -
From: Tim Rupp [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Monday, November 24, 2008 8:48 PM
Subject: [fw-general] zend_date with milliseconds question
Hi list, I noticed in the documentation for Zend_Date (
http
]
To: fw-general@lists.zend.com
Sent: Monday, November 24, 2008 8:48 PM
Subject: [fw-general] zend_date with milliseconds question
Hi list, I noticed in the documentation for Zend_Date (
http://framework.zend.com/manual/en/zend.date.constants.html ) that 3
constants are available for outputting
PROTECTED]
Cc: fw-general@lists.zend.com
Sent: Monday, November 24, 2008 9:13 PM
Subject: Re: [fw-general] zend_date with milliseconds question
Thanks Thomas for that clarification. That would lead me to believe
the documentation for A is incorrect then?
-Tim
On Mon, Nov 24, 2008 at 1:59 PM, Thomas
Hey!
I have an issue when I try to store Zend_Date object into an array, I guess is
not Zend_Date but I don't know what it happend, that's hwat I got:
I get some dates from the database, I create a Zend_Date object with this db
date then I clone it and add some stuff to the object, then I
@lists.zend.com
Sent: Wednesday, October 29, 2008 5:25 PM
Subject: [fw-general] Zend_Date Issue Cloning Dates
Hey!
I have an issue when I try to store Zend_Date object into an array, I
guess is not Zend_Date but I don't know what it happend, that's hwat I
got:
I get some dates from the database
Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: David Mintz [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Monday, October 20, 2008 11:27 PM
Subject: [fw-general] Zend_Date arithmetic: difference in days (not seconds)
between two dates
I would
I would like to compute the difference in days between two dates. I have the
fix_dst option set to true and the timezone is America/New York. A DST
change happened in my timezone on March 9, 2008. So,
$date1 = new Zend_Date(array(
'year'= 2008,
'month'=3,
'day'=7,
'hour'=12,
));
I use Zend_Date class to validate the input date format as showing below
Zend_Date::isDate ( $value, '-M-d' )
However the following input date values CAN NOT BE detected as wrong format
2003--10-1
1005-09-01
Is this a bug for Zend_Date class? Please give your comments. Thanks.
Kevin
--
: Wednesday, October 15, 2008 4:20 PM
Subject: [fw-general] Zend_Date to validate input date format
I use Zend_Date class to validate the input date format as showing below
Zend_Date::isDate ( $value, '-M-d' )
However the following input date values CAN NOT BE detected as wrong
format
Framework
http://www.thomasweidner.com
- Original Message -
From: Kexiao Liao [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Wednesday, October 15, 2008 4:20 PM
Subject: [fw-general] Zend_Date to validate input date format
I use Zend_Date class to validate the input date
: Wednesday, October 15, 2008 4:53 PM
Subject: Re: [fw-general] Zend_Date to validate input date format
Is there any easy way we can use Zend Framework to find 2003--10-1 is an
invalid input date format?
thomasW wrote:
The first one is because Zend_Date ignores all other parts except
numbers
Hi,
if I call getDate() on a date which has a value 4.10.2008 19:15:19,
I get a new date with value 4.10.2008 1:00:00. I would of course
expect the time part to be empty.
The time zone of the date is Europe/Ljubljana, so UTC+1 normally, UTC
+2 currently (DST).
Any ideas? Is this normal
Hi!
MySQL (and probably others) has the following date/time types:
- TIME
- DATE
- DATETIME
- TIMESTAMP
They each serve their purpose and are not redundant. Timestamp
represents an exact point in time. The others represent floating
times, days, or times within days.
XML Schema also
-BEGIN PGP MESSAGE-
Version: GnuPG v1.4.9 (GNU/Linux)
owGbwMvMwCRor/UvqPLs4WbGNWZJkoZGRkaWJkYWFsaWRiZp6QXp8SW5BW6ZOake
TxYsTEwqzs8pLUnNqVQoykzPKNEDAi4urg43FgZBJgY2ViaQIgYuTgGYkSovGObX
9Yfd+O70sEwjd7Vq3Zq9R1/zy0cyLOj+LXBqzeMNqnK/7h/rqwpaHppVvw4A
=tzMr
-END PGP MESSAGE-
On Thu, Oct
Hello,
i have a question about Zend_Date.
Is it possible to calculate the first day (Monday) of a specific Week
in a Year?
For example: I want to find out the date of the Monday from
Calendarweek 40 in 2008. (It has to be 29.09.08)
Greets
Matthias Buesing
[EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Monday, September 29, 2008 3:57 PM
Subject: [fw-general] Zend_Date
Hello,
i have a question about Zend_Date.
Is it possible to calculate the first day (Monday) of a specific Week
in a Year?
For example: I want to find out the date of the Monday
Hey!
I got this code: (http://paste2.org/p/69212)
$objAppointments = new Appointments();
$return = $objAppointments-filter( new Zend_Config( array(
objDateStart = new Zend_Date( 2008-08-29 17:30:00 ),
objDateEnd = new Zend_Date( 2008-09-01 08:25:00 )
) ) );
// Inside
]
To: fw-general fw-general@lists.zend.com
Sent: Tuesday, September 2, 2008 3:48:27 PM GMT -05:00 Columbia
Subject: [fw-general] Zend_Date issue when try to return a date using the
toString method, ZF 1.5.2
Hey!
I got this code: (http://paste2.org/p/69212)
$objAppointments = new Appointments
Hi all
While working on date I've found a strange result ( ZF is 1.6.0RC1 but same
result with 1.5.3 )
$date['en'] = new Zend_Date(null,Zend_Date::DATE_FULL, 'en');
$date['en_US'] = new Zend_Date(null,Zend_Date::DATE_FULL, 'en_US');
$date['en_GB'] = new
to have a fixed outputformat you should define it.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
- Original Message -
From: Bruno Friedmann [EMAIL PROTECTED]
To: fw-general@lists.zend.com
Sent: Sunday, August 10, 2008 11:15 AM
Subject: [fw-general
10, 2008 11:15 AM
Subject: [fw-general] Zend_Date + Zend_Locale bug ( missing translation
localisation ? )
Hi all
While working on date I've found a strange result ( ZF is 1.6.0RC1 but
same result with 1.5.3 )
$date['en'] = new Zend_Date(null,Zend_Date::DATE_FULL, 'en');
$date['en_US
Hy Bruno,
Each locale defines the dateformats in a different way.
OK I have learn that. But my real concern is why I don't get the
translation for DE, de_DE, de_CH ?
You did not ask for an output in a localized format.
And you defined to return the default date/time format from this
Sorry to bother you Master of Local Date.
How should I call Zend_Date to have the following result for the actual time
Donnerstag, 10. August 2008
That not indicate in doc not in api ( no sample given)
Addition substract etc are present, but no sample code.
Thomas Weidner wrote:
Hy Bruno,
Friedmann [EMAIL PROTECTED]
Cc: fw-general@lists.zend.com
Sent: Sunday, August 10, 2008 9:11 PM
Subject: Re: [fw-general] Zend_Date + Zend_Locale bug ( missing translation
localisation ? )
Sorry to bother you Master of Local Date.
How should I call Zend_Date to have the following result
1 - 100 of 177 matches
Mail list logo