Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Tell the Time in French

Author
Message
5867Dude
17
Years of Service
User Offline
Joined: 26th Jun 2006
Location:
Posted: 19th Jan 2008 11:48 Edited at: 19th Jan 2008 21:46
This was something that I coded in around 1/2 an hours time. Anyway heres the compressed code (It's only 10 lines!)


Uncompressed (29 Lines)


It works in DBPro-Think it will work in DBC

EDIT:Sig Update


Sig image made by Deathead
bushido
16
Years of Service
User Offline
Joined: 4th Jan 2008
Location:
Posted: 19th Jan 2008 19:55
cool!

Real men don't need sigs
5867Dude
17
Years of Service
User Offline
Joined: 26th Jun 2006
Location:
Posted: 19th Jan 2008 21:45
Cheers


Sig image made by Deathead
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd Jan 2008 02:59
Nice job
Quote: "if b=5 then b=05"

b is an integer it can't begin with 0.

I made a version using arrays.


5867Dude
17
Years of Service
User Offline
Joined: 26th Jun 2006
Location:
Posted: 24th Jan 2008 07:37
Thanks OBese87
I'm not really the best at DBPro!


Was Cool Kid
Blobby 101
17
Years of Service
User Offline
Joined: 17th Jun 2006
Location: England, UK
Posted: 24th Jan 2008 20:56
cool, now you need to adapt it so that it tells the real time.


thanks to deathead for the sig! please Click on it!
sinisterstuf
17
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 25th Jan 2008 14:53 Edited at: 27th Jan 2008 21:37
Here, I made this just now, translates the current time in realtime, rounded to 5 minutes (cos I can't speak french and just copied 5867Dude's words). I'm kindof a beginner and I also wrote this in notepad because my DBpro editor is at home, so I also haven't tested it, PLEASE TELL ME IF IT WORKS!!!



... hope it works, I'm not sure if it works at night either...
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 30th Jan 2008 20:24 Edited at: 30th Jan 2008 21:11
Quote: "... hope it works, I'm not sure if it works at night either..."

haha

Sinister: I just finished your clock, it's great tells the time and everything.

Guy: Oh cool, I need a clock; I've got this big date tonight and I have to be on time.

Sinister: Umm... you want it to use it at night?

Guy: Yeah, what's the problem?

Sinister: Oh nothing, nothing... any chance you could reschedule for say... 9am, or something?

Guy: 9am? Why would I go on a date at 9am?

Sinister: 10am? Hey you could even go by half hours; 10:30am? Or if you wanna go really crazy how about 10:45? Which in french is "onze heur moins le quart"

Guy: It doesn't work at night does it?

Sinister: No

[edit]
sounds a bit like a PC vs Mac thing

sinisterstuf
17
Years of Service
User Offline
Joined: 28th Mar 2007
Location: Namibia, Southern Africa
Posted: 1st Feb 2008 13:06
lmao, no it should work at night, it's just that when I tested it and it didn't work it was at night. Coincidence. But I think I fixed that, I dunno, I can't test it, could you? The only other thing I also can't do because I don't have my DBpro anymore is that it doesn't round up to the next hour when it's say 15:58 or whatever, maybe I'll do that, not difficult... if you have DBpro to help it make sense.

Happy, always happy!
Libervurto
17
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 3rd Feb 2008 03:30


Just realised how late it is so I'll dump this here and carry on tomorrow

5867Dude
17
Years of Service
User Offline
Joined: 26th Jun 2006
Location:
Posted: 6th Feb 2008 21:22
Quote: "Just realised how late it is so I'll dump this here and carry on tomorrow"

Cool-Tomorrow is 3 days LOL!


Was Cool Kid

Login to post a reply

Server time is: 2024-04-16 18:45:16
Your offset time is: 2024-04-16 18:45:16