Yii Framework Forum: CTimestamp - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

CTimestamp

#1 User is offline   dckurushin 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 392
  • Joined: 16-March 11
  • Location:Israel

Posted 01 September 2011 - 05:23 PM

In php 5.3 (also partly in 5.2) you have the DateTime that fixes the issue of 2038 year...

$z=DateTime('01/01/9999');
$z->format('U');

Maybe you could simplify the CTimeStamp in 2...
Also the CDateTimeParser uses date('Y') etc.
we very far from 2038... but who knows :lol:
0

#2 User is offline   Trejder 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,181
  • Joined: 06-October 10
  • Location:Southern Poland

Posted 13 September 2011 - 05:07 AM

There are some rumours that there will be no 2038 as some comet or asteroid should hit the Earth before! :] And according to some interpretations of the Maya Calendar we won't be even able to pass 21 December next year! :]

But since most of us doesn't believe in such bullshit I would support implementation of feature proposed in this topic.
Proud Cookbook author, though still learning powerful Yii! :] See my generic profile for more information. Cheers!
2

#3 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 13 September 2011 - 05:43 AM

:lol:
"Less noise - more signal"
0

#4 User is offline   robregonm 

  • Expert Yii Developer
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 591
  • Joined: 30-July 09
  • Location:Colombia

Posted 22 September 2011 - 12:45 PM

I think we should keep scalability in mind... Yii 2.0 priority is not compatibility, so we can take advantage of it.
However, I have a question, will be some kind of negative impact in DB compatibility?
Ricardo Obregón

YiiFramework en Español - http://yiiframework.co/ - http://yiiframeworkenespanol.org/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx 1.4, MySQL(MariaDB & PerconaDB), PostgreSQL 9, Yii 2.0-dev.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#5 User is offline   Davidhhuan 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 270
  • Joined: 08-September 09

Posted 19 October 2011 - 08:03 AM

@robregonm

+1
no pain, no gain...

My Blog : http://cnblogs.com/davidhhuan
My website: http://sharefamily.net/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users