Welcome Guest, Not a member yet? Register   Sign In
Database Timestamp ?
#1

Hi guys

Quick question regarding database automatic timestamps.

From the User Guide ...


Quote:$useTimestamps

This boolean value determines whether the current date is automatically added to all inserts and updates. If true, will set the current time in the format specified by $dateFormat. This requires that the table have columns named ‘created_at’ and ‘updated_at’ in the appropriate data type.




Quote:$dateFormat

This value works with $useTimestamps to ensure that the correct type of date value gets inserted into the database. By default, this creates DATETIME values, but valid options are: datetime, date, or int (a PHP timestamp).


Which do you use and why?

Does the datetime option use the MySql timestamp, or is this not used at all.

Thanks
Reply


Messages In This Thread
Database Timestamp ? - by MeltedRolo - 04-29-2019, 10:16 AM
RE: Database Timestamp ? - by php_rocs - 04-29-2019, 02:02 PM
RE: Database Timestamp ? - by MeltedRolo - 04-29-2019, 02:08 PM
RE: Database Timestamp ? - by MeltedRolo - 04-29-2019, 03:40 PM
RE: Database Timestamp ? - by InsiteFX - 04-29-2019, 04:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB