This will return the number of seconds between now and when the time field was inserted.
This function helps you checking a UNIX timestamp with human readable time formats like 1m, 2d or 4y.
Converts a DOS path to a Unix path and returns it.
Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself. If your server thought it was 12 midnight, but it was really 7 pm, this will roll the $today variable back five hours to be correct.
To test in other timezones, replace '-5' with your local standard time GMT offset.
By default, Delphi gets its date/time, currency and numeric format from Control Panel's International settings. We can set the constants defined in Delphi, like DecimalSeparator, ShortDateFormat and others like in the code below. To a complete list of these variables, look at Currency and date/time formatting variables in Delphi Help.
Adjusted for daylight saving or standard time as appropriate.
Example shows how to get the database date and time.
When placed in startup scripts, this snippet activates every time user opens a file. It then traverses the directory path backwards and looks for user created project folders. If one is found, script offers to switch it on. This is very useful when working with a number of projects at a time.
Check out the Time in the Status Line at the bottom left.
Converts a date or time from one timezone to another.