Epoch/Unix timestamp command

Would really like to have a timestamp command that could return the number of seconds elapsed since epoch.

4D commands Milliseconds and Tickcount return the time elapsed for the current process.

SQL functions CURRENT_TIMESTAMP and CURTIMEreturn HH:MM:SS not seconds elapsed. (Never mind the apparent lack of a naming convention)

C_LONGINT($seconds_since_epoch)
` Time is currently a command that requires parameters
` lets change it so no params = unix timestamp
$seconds_since_epoch:=Time


Author’s Note

Initial md Generated using https://github.com/jsr6720/wordpress-html-scraper-to-md

Original Wordpress categories: [‘Wish List’]

Original Wordpress tags: “Wish List”, “epoch”, “timestamp”, “time_t”

Original Wordpress comments: None

Significant revisions

tags: 2011, wordpress, txcowboycoder, wish-list, 4D

  • May 6th, 2024 Converted to jekyll markdown format and copied to personal site
  • Jan 19th, 2011 Originally published on txcowboycoder wordpress site

EOF/Footnotes