Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
About Us Register FAQ Members List Calendar Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old June 7th, 2008   #1 (permalink)
~€ PanZeR €~ idRO Thor
 
Galway no Sora's Avatar
 
Join Date: Mar 2003
Location: Valhalla, in Odin's throne
Posts: 3,145
Time Handle Procedure on Delphi

I'm working on a time calculator, which I've got it to work, partialy. But seriously I need help on time procedure in Delphi. Specialy how to handle only 1 part (hh only, or mm only) of time display, rather than 3 (hh, mm, ss).

Code:
label1.caption:=FormatDateTime('hh',Now);
label2.caption:=FormatDateTime('mm',Now);
As you see, the label1.caption correctly show the hour relevant with your PC time, but the label2.caption will show MONTH, rather than it should (minute). I've change it to both mm dan MM but still it show month.

If any of you know or can help, it would be really appreciated. Sorry for my bad english.
__________________



Core 2 Duo 1.6 GHz «» 2048MB DDR2 RAM «» 256MB onboard Graphic
Onboard Realtek High Definition Soundcard «» 160 + 40 GB SATA HDD
Pioneer DVD±RW «» 15.4" Widescreen LCD «» Windows Vista Ultimate

Sucks ha? Yeah, that's a laptop for sure.

Last edited by Galway no Sora; June 11th, 2008 at 10:03.
Galway no Sora is offline   Reply With Quote
Old July 1st, 2008   #2 (permalink)
Fallen
 
Kraelis's Avatar
 
Join Date: Jun 2001
Location: Moonlight Spire
Posts: 1,393
Sorry for the horribly late reply...

Minutes is 'nn'.
__________________
--KrÆlis Cross


Mundus vult decipi, ergo decipiatur

===============
Athlon 64 x2 3800| Asrock ALiveNF6G-VSTA | Kingston DDR2 1 Gb RAM
Kraelis is offline   Reply With Quote
Old July 1st, 2008   #3 (permalink)
越南にて
 
Anatasia's Avatar
 
Join Date: Jun 2006
Location: Vietnam
Posts: 317
Yeah,you're right.But I think this is because he was too careless or he didn't read enough the basic part.Like in my case,everytime I use a function in Java,I have to read its instruction in JDK.
__________________
Yoroshiku onegaiitashimasu
Anatasia is offline   Reply With Quote
Old July 10th, 2008   #4 (permalink)
~€ PanZeR €~ idRO Thor
 
Galway no Sora's Avatar
 
Join Date: Mar 2003
Location: Valhalla, in Odin's throne
Posts: 3,145
It was 8 years ago when I was first time learning Delphi programming language, after that period I'm just forgot some of the "codes". I read a lot actually, but none of them specify the details. They usually just put it in "hh:mm:ss" and none of them show it separately. That's the problem. But now it's done. And I also get a reward from it (because of googling), found how to play an AlphaBlend and create a custom "skin" without having to load the image from source. Thanks to you all.
__________________



Core 2 Duo 1.6 GHz «» 2048MB DDR2 RAM «» 256MB onboard Graphic
Onboard Realtek High Definition Soundcard «» 160 + 40 GB SATA HDD
Pioneer DVD±RW «» 15.4" Widescreen LCD «» Windows Vista Ultimate

Sucks ha? Yeah, that's a laptop for sure.
Galway no Sora is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 18:20.

© 2006 - 2008 Emu Forums | About Emu Forums | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.7.0 Release Candidate 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5