English
Forum & Help

abgelöst: date

 
function abgeschafft,

Funktionsweise becomes from the function time abgedeckt.

[OFFTOPIC]date([n[,{unixtime|datumstring}]]) gives one date as String back,

on the example the 1.2.3000:

date() without Parameter or first Parameter zero: 3000-02-01
date(0): 01.02.3000 (landesspezifisches stature, z.B. 10.12.1978)
date(1): unbenutzt
date(2): unbenutzt
date(3): 30000201 (Datenbankformat)
date(4): unbenutzt
date(5): unbenutzt
date(6): week-day 0-6, 0=Sonntag, 1=Montag, ...
date(7): day in the month (1-31)
date(8): month (1-12)
date(9): year (yyyy)
date(10): Kalenderwoche (1-53)

becomes the optionale Parameter unixtime indicated, then won't the actually date uses separate the date the angegebenen unixtime. actually (jetzige) unixtime can with the function time() determined go.

so is the morgige date always:

date(0,time()+60*60*24)

and the Gestrige:

date(0,time()-60*60*24)

Parameter 2 can also of type String his,
becomes then interprets How of time Parameter 1, means:

is Parameter 2 one String, then becomes the date (Stringinhalt) as date red and Date uses The suitable Unixtime the Datums.

the date in the string must 2 Formate having:

a) yyyy-mm-dd[ hh[:mm[:ss]]]
b) dd.mm.yyyy[ hh[:mm[:ss]]]
Info: If date fails becomes zero zurückgegeben, not 0![/OFFTOPIC]
 
12/22/14  
 



Date(0) gives now in the landesspezifischem stature from.
 
12/27/14  
 



New:

date(6): week-day 0-6, 0=Sonntag, 1=Montag, ...
date(7): day in the month (1-31)
date(8): month (1-12)
date(9): year (yyyy)
date(10): Kalenderwoche (1-53)

example:

print date(10,time("22.12.2014")) // gives 52 from, likewise:
print date(10) //Kalenderwoche of today
 
12/27/14  
 



New:

Parameter 2 can now too of type String his,
becomes then interprets How of time Parameter 1, means:

is Parameter 2 one String, then becomes the date (Stringinhalt) as date red and Date uses The suitable Unixtime the Datums.

the date in the string must 2 Formate having:

a) yyyy-mm-dd[ hh[:mm[:ss]]]
b) dd.mm.yyyy[ hh[:mm[:ss]]]
.

The Kalenderwoche one beliebigen Datums spend:

print date(10,"10.12.1978")
 
12/27/14  
 



function abgeschafft,

Funktionsweise becomes from the function time  [...]  abgedeckt.
 
12/28/14  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.998 Views

Untitledvor 0 min.
Nico Madysa03/28/16
Georg Hovenbitzer01/20/16
Abigail09/06/15
ByteAttack06/07/15
More...

Themeninformationen

this Topic has 1 subscriber:

iF (5x)


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