Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
how to get current system time...

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
Moderator
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: "Internati?nal" (you are not logged in)


Text:

 

  

Possible 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


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact