Restored from previous forum. Originally posted by merendo.
I know how silly this question is, but I didn´t find anything in the #PB_Manual.
Which command do I have to use when I want to get the current time (clock) and the current date??? Am I just too silly or is there really nothing included in the manual? PLZ help me
We always need to hear both sides of the story (by Phil Collins)
Help me, I´m stupid
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
Hum, nothing yet about time and date. I will add this soon. But extra libraries are available, see http://www.reelmediaproductions.com/pb/.
Fred - AlphaSND
Hum, nothing yet about time and date. I will add this soon. But extra libraries are available, see http://www.reelmediaproductions.com/pb/.
Fred - AlphaSND
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by fred.
.
Fred - AlphaSND
No problem. I will reply to this thread..All right. As long as there are no time and date commands, I will use an external program language. May you tell me, when these new commands are ready?
We always need to hear both sides of the story (by Phil Collins)
Fred - AlphaSND
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> As long as there are no time and date commands, I will use an external
> program language.
No need to use another language -- you can use the PureBasic libraries at the
URL that Fred gave above, or use the following code if your app is for Windows:
PB - Registered PureBasic Coder
> As long as there are no time and date commands, I will use an external
> program language.
No need to use another language -- you can use the PureBasic libraries at the
URL that Fred gave above, or use the following code if your app is for Windows:
Code: Select all
GetLocalTime_(time.SYSTEMTIME)
hr=time\wHour : mi=time\wMinute : se=time\wSecond
da=time\wDay : mo=time\wMonth : ye=time\wYear
PB - Registered PureBasic Coder
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by PB.
> This command you told me to use isn´t documented in the manual and there is
> also no quick help available for it. What is it about?
It's something called an API command. In Windows, there's a set of programming
commands called APIs (application programming interface), and these commands are
fully supported by PureBasic. They are not documented in PureBasic because the
docs for them are massive. The good thing about APIs is, as you've seen, that
you can do things in PureBasic even if PureBasic doesn't have a native command
to do so. You should download the API Guide at this address to learn more:
http://www.allapi.net
PB - Registered PureBasic Coder
> This command you told me to use isn´t documented in the manual and there is
> also no quick help available for it. What is it about?
It's something called an API command. In Windows, there's a set of programming
commands called APIs (application programming interface), and these commands are
fully supported by PureBasic. They are not documented in PureBasic because the
docs for them are massive. The good thing about APIs is, as you've seen, that
you can do things in PureBasic even if PureBasic doesn't have a native command
to do so. You should download the API Guide at this address to learn more:
http://www.allapi.net
PB - Registered PureBasic Coder
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by DarkUni.
Here is one of the better lists I've seen that show off WinAPI commands:
http://leb.net/wine/WinDoc/funcIndex-local.html
Enjoy it - you can probably see now why its not documented anywhere in PB
Shane R. Monroe, Dark Unicorn Productions
Pure Basic Basement
http://pb.darkunicornproductions.com
Here is one of the better lists I've seen that show off WinAPI commands:
http://leb.net/wine/WinDoc/funcIndex-local.html
Enjoy it - you can probably see now why its not documented anywhere in PB
Shane R. Monroe, Dark Unicorn Productions
Pure Basic Basement
http://pb.darkunicornproductions.com
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
merendo wrote:
>Interesting. This command you told me to use isn´t documented
>in the manual and there is also no quick help available for it.
No help for this WinAPI command ??
Do the following:
1.) download http://www.borland.com/devsupport/borla ... 52HLP1.ZIP (5,43MB)
2.) UnZIP it to a temporary folder
3.) Copy the "win32.hlp" file to "PureBasic\Help\" (create this dir if it doesnt exist)
Now start PureBasic and type
Move the cursor on the WinAPI function and press F1.
Try it with SendMessage_() and CreateWindowEx_() and...
Nice, eh ??
Dont forget: You can also browse the WinAPI Help
with the buttons at the top of the Help.
cya,
...Danilo
(registered PureBasic user)
Edited by - Danilo on 11 April 2002 07:42:43
merendo wrote:
>Interesting. This command you told me to use isn´t documented
>in the manual and there is also no quick help available for it.
No help for this WinAPI command ??
Do the following:
1.) download http://www.borland.com/devsupport/borla ... 52HLP1.ZIP (5,43MB)
2.) UnZIP it to a temporary folder
3.) Copy the "win32.hlp" file to "PureBasic\Help\" (create this dir if it doesnt exist)
Now start PureBasic and type
Code: Select all
GetLocalTime_(time.SYSTEMTIME)Try it with SendMessage_() and CreateWindowEx_() and...
Nice, eh ??
Dont forget: You can also browse the WinAPI Help
with the buttons at the top of the Help.
Code: Select all
[ Contents ][ Index ][ Back ][ > ]...Danilo
(registered PureBasic user)
Edited by - Danilo on 11 April 2002 07:42:43