World: r3wp
[Core] Discuss core issues
older newer | first last |
Graham 24-Oct-2005 [2482] | Ladislav, how did you know the cut off date? |
Volker 24-Oct-2005 [2483] | middle? 50 years? |
Graham 24-Oct-2005 [2484x2] | ahh... |
well, I think we need an adjustable window | |
Ladislav 24-Oct-2005 [2486] | adjustable window - you may put it to RAMBO as a request, but I am not sure if you succeed |
Volker 24-Oct-2005 [2487] | would something in system/options be a big effort? |
Graham 24-Oct-2005 [2488] | I thought RT wanted to get into medical applications :) |
Ladislav 24-Oct-2005 [2489] | OK, try to put it there and let's see :-) |
Graham 24-Oct-2005 [2490] | system/options sounds appropriate |
Ladislav 24-Oct-2005 [2491] | currently it is -50 to 50 but even -100 to 0 isn't "safe" (ever heard anecdotes about inviting over 100 people to elementatry schools?) |
Volker 24-Oct-2005 [2492x2] | I think it is importan if you get dates as strings, you dont know after the converion if it was 2 or 4 digits. makes the smartness of to-date useless, going back to self-made conversion. OTOH in most cases defaults are enough, but so are english month :) |
main point may be, some dates cant be in the future, like being born. | |
Graham 24-Oct-2005 [2494] | 110 - 0 should be enough |
Ladislav 24-Oct-2005 [2495x2] | but impossible |
it is more than 100 | |
Graham 24-Oct-2005 [2497] | there are many centenarians around. |
Ladislav 24-Oct-2005 [2498] | :-P |
Graham 24-Oct-2005 [2499x2] | the Galapagos turtle that was said to have been brought back by Charles Darwin is over 160 years old now. |
so, for vetinary applications, would have to adjust the date window even further. | |
Volker 24-Oct-2005 [2501] | maybe hexdates, going to 255? :) |
Ladislav 24-Oct-2005 [2502x2] | your trouble is, that the window is only 100 years wide |
so if you want it to start at -110, it can go to -10 maximum | |
Graham 24-Oct-2005 [2504] | Well, I think the vets can argue their own case, I can work with a 100 year window. |
Ladislav 24-Oct-2005 [2505] | this is not about computers, it is about the fact, that two-digit years can represent only 100 years, i.e. no "window trick" can give you more than 100 years |
Volker 24-Oct-2005 [2506] | with all those extinctions that -10 window may be ok.. :( |
Graham 24-Oct-2005 [2507] | If there is a 4 digit field, then birthdates pre last century would normally be added in 4 digits by most people. |
BrianH 24-Oct-2005 [2508] | Why don't you implement the window yourself with a parse rule? It wouldn't be difficult to parse the date yourself. |
Graham 24-Oct-2005 [2509] | because although I can do it, someone else may not be able to do so. |
Ladislav 24-Oct-2005 [2510] | I think, that we have successfully proven, that two digit dates are insufficient for human medicine regardless what window we choose |
Graham 24-Oct-2005 [2511] | to-date/birth |
Ladislav 24-Oct-2005 [2512] | but still, is a "24/Oct/05" a newly born or a 100 years old? |
BrianH 24-Oct-2005 [2513] | Either way congratulations are in order :) |
Ladislav 24-Oct-2005 [2514] | :-)) |
Graham 24-Oct-2005 [2515x2] | to-date/newborn |
for pediatric applications | |
Ladislav 24-Oct-2005 [2517x2] | Brian: did you notice my suggestion to write a RAMBO request for IF and USE in PARSE dialect? |
for pediatric applications you may need 24/Jul/06 to be next year, may you not? | |
BrianH 24-Oct-2005 [2519] | Ladislav, I did notice. I'll do it later, after I get some sleep - I want to think about the phrasing. |
Graham 24-Oct-2005 [2520] | yeah .. EDD are in the future. |
Ladislav 24-Oct-2005 [2521] | glad I am not supposed to solve this :-P |
Sunanda 24-Oct-2005 [2522] | Dates have natural ranges depending on their domain. An expected due date of an unborn baby is (in theory) no more than 9 months away. The expected due date assigned to my mother before I was born is, now, a long time ago. I don't'see how you can get around applying all due diligence to *any* input field. That may include asking for 4-digit dates on some occassions or disambiguating 24/oct/05 to ensure you know which part is the year. Validation is one of the hardest parts of any real-world application, and one of the parts that most languages -- REBOL included -- offer only token support for. Ideally, we'd have a range of to-xxx? words, like: to-date? "29-feb-03" == [false "no such date"] to-date?/strict "29-feb-04" == [false "ambiguous year/day] to-date?/window "29-feb-04" [1975 2074] == [true 29-feb-2004] |
Benjamin 24-Oct-2005 [2523] | how can a call rebol from a PHP page ? |
Sunanda 24-Oct-2005 [2524] | Does this help? http://www.hudzilla.org/phpbook/read.php/4_12_0 |
Graham 24-Oct-2005 [2525] | there's a php implementation in rebol on the rebol france page |
Benjamin 24-Oct-2005 [2526x4] | thanks Sunanda, exec() is a bit slow |
im using exec("rebol.exe -sc test.r", $output, $return); it worked well im going to check the php implementation | |
im adding a module to phpAdsNew and i need to make it in rebol because my php skills are soooo bad | |
i cant find the implementation any where, in rebol france site, can you point me to the link ? | |
Graham 24-Oct-2005 [2530x2] | http://www.xgarreau.org/zazouminiwebserver/ |
close .. the docs are in French. | |
older newer | first last |