English
Bugs and vermeintliche

actually Version XProfan X2 - week-day detect

 

Dietmar
Horn
make I here something wrong, or rechnet XProfan X2 wrong?
Var zeitpunkt$ = "18.12.1955"
Var d! = dt("SetDate",zeitpunkt$)
Var wtag& = dt("getDoW",d!)
Declare week-day$
Case wtag& = 1 : week-day$ = "Montag"
Case wtag& = 2 : week-day$ = "Dienstag"
Case wtag& = 3 : week-day$ = "Mittwoch"
Case wtag& = 4 : week-day$ = "Donnerstag"
Case wtag& = 5 : week-day$ = "Freitag"
Case wtag& = 6 : week-day$ = "Samstag"
Case wtag& = 7 : week-day$ = "Sonntag"
cls
Print "Wochentag the Zeitpunktes: " + st$(wtag&)' 1
Print "Wochentag the Zeitpunktes: " + week-day$' monday (instead of sunday)
Waitinput

i know very, that I one "Sonntagskind" be - still XProfan X2 means, I would one "Montagskind".

Greeting
Dietmar
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
02/27/11  
 



by me and my birthday comes thereafter too monday instead of sunday out -

vlt. begins The getDoW-week with sunday:
Var zeitpunkt$ = date$(0)
Var d! = dt("SetDate",zeitpunkt$)
Var wtag& = dt("getDoW",d!)
Declare week-day$
Case wtag& = 1 : week-day$ = "Sonntag"
Case wtag& = 2 : week-day$ = "Montag"
Case wtag& = 3 : week-day$ = "Dienstag"
Case wtag& = 4 : week-day$ = "Mittwoch"
Case wtag& = 5 : week-day$ = "Donnerstag"
Case wtag& = 6 : week-day$ = "Freitag"
Case wtag& = 7 : week-day$ = "Samstag"
cls
Print "Wochentag the Zeitpunktes: " + st$(wtag&)' 1
Print "Wochentag the Zeitpunktes: " + week-day$' monday (instead of sunday)
Waitinput
 
02/27/11  
 




RGH
Arrrghhh .... the happens, if one not even koirrekt from the Delphi-Help Quote can:

"Beschreibung
DayOfWeek gives whom week-day to that angegebenen date as Integer between 1 and 7 back. thereby is sunday day 1 and saturday day 7."

i'll The Help adjust ... or I could instead of the Delphifunktion DayOfWeek The DelphiFunktion DayOfTheWeek use, then is 1 objectively the monday. I faith almost, the would rather, because of ISO-8601-rule.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/27/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.243 Views

Untitledvor 0 min.
Torben Nissen02/13/17
Torsten Rümker06/02/15
E.T.01/05/14
funkheld02/23/13
More...

Themeninformationen

this Topic has 3 subscriber:

RGH (1x)
iF (1x)
Dietmar Horn (1x)


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