English
Forum

Perhaps. "dämliche" Question whom Datums-functions

 

E.T.
Help XProfan X2
...
@dt("getYear", D)
@dt("getMonth", D)
@dt("getDay", D)
@dt("getHour", D)
@dt("getMin", D)
@dt("getSec", D)
D: Float - Time
Result: Integer

it'll the year (0-9999), the month (1-12), the day (1-31), The hour (0-23). The Minute (0-59) or The second (0-59) the Zeitpunktes D zurückgegeben.
...


i want just the nude. year having. be only not yet behind it mounted, I as D  transfer must (without umständlich first the nude. date converting To must). an 0,1 etc. yields a Error Message:



might these function not too this D  optional having as most others dt-functions and @dt("getYear")  simply the nude. year back supplying ??

30 kB
Hochgeladen:03/06/13
Downloadcounter133
Download
 
XProfan X2
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
03/06/13  
 




Jörg
Sellmeyer
mh - so correctly. heavy is the really not, or?
CompileMarkSeparation
Print Dt("getYear",!now)
>
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/06/13  
 



what I me wish would would, that XProfan time such time()-function anbietet,
The without Parameter whom Unix-Timestamp returns in link with of/ one Date-
function, The then lauten could date$("d.m.Y",time()) and "01.01.2000" back-
supply. for date-Berechnungen there imho nothing what rather is: [...] 
 
03/06/13  
 




E.T.
thanks Jörg, if mans white funktioniert's too
Something like could one vlt. in the Help @dt... etc. allude
 
XProfan X2
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
03/06/13  
 




Jörg
Sellmeyer
iF (06.03.13)

what I me wish would would, that XProfan time such time()-function anbietet,
The without Parameter whom Unix-Timestamp returns in link with of/ one Date-
function, The then lauten could date$("d.m.Y",time()) and "01.01.2000" back-
supply. for date-Berechnungen there imho nothing what rather is: [...] 


Meinst You something like?
CompileMarkSeparation
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/06/13  
 



Näh,

I mean:
CompileMarkSeparation
print date("d.m.Y")
>

01.01.1970

Specifically this what with $stature standing: [...]  -

example:
CompileMarkSeparation
print date("t",time())
>

31

or:
CompileMarkSeparation
print date("n",time())
>

3

means everything explicit hilfreicher as this dt-Gedöns if one with Datumse calculate likes -

quasi everything without half-way cramp rausbekommen.
 
03/06/13  
 




Jörg
Sellmeyer
I find it something umständlich but with a couple SubProcs or own Procedures might the still everything no trouble his.
what your letztes Codebeispiel show should, is me though not integrally clear.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/06/13  
 



Wochentagzahl, Mi=3.

Number of days the month's to 2 weeks:
CompileMarkSeparation
print date("t",time()-60*60*24*14)
>

strtotime ( [...]  ) is too so one gavel,
CompileMarkSeparation
print strtotime("01.01.2000")
>

gives properly Unixtimestamp from, means:
CompileMarkSeparation
print date("d.m.Y",strtotime("01.01.2000"))
>

01.01.2000


or yummy:
CompileMarkSeparation
print strtotime("+14 day","01.01.2000")
>

for Fristenderechnung etc.
 
03/07/13  
 




Jörg
Sellmeyer
??

if that here:


CompileMarkSeparation
print date("d.m.Y",strtotime("01.01.2000"))
>

only the date in the equal stature as input outputs, erschließt itself me the benefit though not...
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
03/07/13  
 



Rechenbeweiß quasi -

sinnvoller vlt. if one instead of "d.m.Y" only "t" angibt the number of days one
month's zurückzuerhalten or whatever instead of "d.m.Y", z.B. "Ymd".
 
03/07/13  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

9.434 Views

Untitledvor 0 min.
H.Brill11/11/22
Langer01/30/21
Jörg Sellmeyer05/15/18
Jürgen Strahl05/03/15
More...

Themeninformationen

this Topic has 3 subscriber:

iF (4x)
Jörg Sellmeyer (4x)
E.T. (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie