Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 17,605 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
strdate / wdate second's decimals #471439
03/04/18 13:10
03/04/18 13:10
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline OP
User
Sphin  Offline OP
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
strdate("%y%m%d %H:%M:%S", wdate()) doesn't show second's decimals, did I miss something in format? %S should show optional decimals but how to exercise this option?

Re: strdate / wdate second's decimals [Re: Sphin] #471460
03/05/18 13:28
03/05/18 13:28
Joined: Jul 2000
Posts: 28,022
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,022
Frankfurt
%S does not display decimals. There is no format code for displaying decimals. Only when you import a date, %S gets also the decimals because that is a Zorro function, not a standard Windows function.

For decimals, round down the date to the recent second, subtract, and display the difference as decimals.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1