Questions tagged [zend-date]

64 questions
0
votes
1 answer

Split time by day of the week with an interval defined by two Zend_Date

I have two Zend_Date that represent an interval : $start = new Zend_Date($punch->getStart()); $end = new Zend_Date($punch->getEnd()); $nbHours = $start->sub($end , Zend_Date::HOUR); $nbMinutes = $start->sub($end , Zend_Date::MINUTE); $hoursTotal =…
Jean-Philippe Bond
  • 10,089
  • 3
  • 34
  • 60
0
votes
1 answer

How i can get internationalized date string from Zend_Date without time

I need to echo internationalized time in different format for different languages. Now i am using locale when creating a date, but it also outputs time: $date->toString(); 29.05.2012 0:00:00 Expected result: 29.05.2012 In documentation i can see…
avasin
  • 9,186
  • 18
  • 80
  • 127
0
votes
1 answer

Zend_Date::sub() and ISO_8601 calculating hour difference wrong

I want to calculate time difference between two Zend_Date objects (for countdown calculator): $now = new Zend_Date($now_datetime, Zend_Date::ISO_8601); $end= new Zend_Date($end_datetime, Zend_Date::ISO_8601); echo $now->getIso(); echo…
Tomasz Rozmus
  • 1,646
  • 13
  • 21
-2
votes
1 answer

Zend_Date subtraction of two datetime mysql values

i am building a small application to calculate employee attendance. A user will check in, his check in time will be recorded in a mysql datetime format, for example check_in_time 2011-12-16 20:27:20 And when he checks out check_out_time 2011-12-16…
zf.
  • 123
  • 1
  • 1
  • 10
1 2 3 4
5