| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
About timestamp
Hello everyone,
I need to record a set of data items. For each data item, users may modify to some new content. So, I plan to use a timestamp field for each data item to record the time when user modifies data item last time. I am not sure whether I should use a simple integer value (like version information, which increase 1 each time when user modifies data item)? Which approach is better? What are the advantages and disadvantages of each approach? thanks in advance, George |
|
#2
|
||||
|
||||
|
Using a timestamp has the advantage that you can see when an item was changed (d'uh
), and enables you to see if several things were changed at the same time.
__________________
This is my code. Is it not nifty? "The biggest problem encountered while trying to design a system that was completely foolproof, was, that people tended to underestimate the ingenuity of complete fools." ---Douglas Adams Join the Itsacon fanclub! Zero Tolerance: Spammers banned so far: 280
![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > About timestamp |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|