Unix timestamp problem

Author Message

Kjerand Pedersen

Monday 28 July 2003 12:10:54 pm

I'm using a date-field in a class where I store the date of birth and use this to determine and print the age of the person registered. However, today I tried to register someone who is born prior to 1970. The date entered in the datefield will not be stored.

Isn't it possible to have a timestamp with a negative values? Or is the timestamp saved as an unsigned number? Any way to get by this problem?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 18:21:43
Script start
Timing: Jan 18 2025 18:21:43
Module start 'layout'
Timing: Jan 18 2025 18:21:43
Module start 'content'
Timing: Jan 18 2025 18:21:44
Module end 'content'
Timing: Jan 18 2025 18:21:44
Script end

Main resources:

Total runtime0.8380 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.9063152.6250
Module start 'layout' 0.00730.0034 740.531339.4453
Module start 'content' 0.01070.8258 779.9766398.2891
Module end 'content' 0.83650.0014 1,178.26568.1719
Script end 0.8379  1,186.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4550160.0002
Check MTime0.00180.2110160.0001
Mysql Total
Database connection0.00120.138110.0012
Mysqli_queries0.797695.1814460.0173
Looping result0.00050.0629440.0000
Template Total0.803195.820.4015
Template load0.00190.232520.0010
Template processing0.801195.599220.4005
Template load and register function0.00060.068310.0006
states
state_id_array0.00200.241610.0020
state_identifier_array0.00140.167920.0007
Override
Cache load0.00150.183050.0003
Sytem overhead
Fetch class attribute can translate value0.00140.169710.0014
Fetch class attribute name0.00190.228210.0019
XML
Image XML parsing0.00010.014110.0001
class_abstraction
Instantiating content class attribute0.00000.001510.0000
General
dbfile0.00160.1899100.0002
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 4
 Number of unique templates used: 4

Time used to render debug report: 0.0001 secs