datetime need more abstraction

hswong3i - November 21, 2007 - 16:11
Project:Drupal
Version:7.x-dev
Component:database system
Category:bug report
Priority:critical
Assigned:hswong3i
Status:duplicate
Description

As D6 schema API introduce abstraction for datetime:normal data type, this will introduce more complicated cross database compatible problem.

Refer to document from ADOdb (http://phplens.com/lens/adodb/tips_portable_sql.htm), time related abstraction require around 6 functions/operators. Without similar helper functions as ADOdb, our existing format_date() maybe a much portable solution. Should we rather REMOVE the datetime abstraction, or complete our abstraction level with better support?

#1

hswong3i - December 24, 2007 - 06:35

(This is part of my personal research project Siren's issue.)

#2

hswong3i - December 24, 2007 - 06:36
Title:DB compatibility: datetime need more abstraction» datetime need more abstraction

#3

beginner - July 2, 2008 - 10:15

#4

alexanderpas - July 2, 2008 - 17:52

may I point everyone towards:

ISO8601: Numeric representation of Dates and Time

Wikipedia: http://en.wikipedia.org/wiki/ISO_8601
Summary from ISO: http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_us...
Full document (zip-pdf, 228KB): http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=...

how about a varchar field that simply stores the ISO date and/or time

#5

catch - July 3, 2008 - 11:45
Status:active» duplicate

@beginner #200953 has more information, so marking this as duplicate of that

 
 

Drupal is a registered trademark of Dries Buytaert.