ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:    
Ambiera Forum > CopperCube > Announcements and Showcase
how to get current system time...
Author Text

ajay
Registered User
Quote
2017-07-16 21:27:34

Hello everyone
How to get system time like android or windows on 2d overlay...pleaz


just_in_case
Registered User
Quote
2017-07-17 06:53:39

I have posted it before on the forums ... but am too lazy to crawl it in the forums so am posting the ccb file again....

Here is the link to ccb file to get the current system time...and date..

and you can use it in your project to switch to the another scene after 10 days of launching of the app...

https://drive.google.com/file/d/...

hope it helps you !!


niko
Moderator
Quote
2017-07-17 07:43:53

You could do something like this in JavaScript:


var node = ccbGetSceneNodeFromName("yourOverlay");
var date = new Date();
ccbSetSceneNodeProperty(node, "Text", date.toString());



ajay
Registered User
Quote
2017-08-15 20:49:07

Thanx just in case


ajay
Registered User
Quote
2017-08-15 20:49:31

Thanx nico


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Forum Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   





Software: Ambiera Light Forum. © 2008-2015 Nikolaus Gebhardt, Ambiera e.U.