Can anyone please help me to create a 30 days validity countdown timer. I searched in community but could not find relevent answer.
I want to create something like mobile recharge validity period.
Why not? Plenty of suggestion are there
When button click get current date and time in millisec and save add 86400000*30 then save the value in tinydb.
When ever screen initi, get current day and time in millis and find the difference in millis. And show this millis as remaining DD,hh:mm:ss using extension
V2 added with Ontick ,Onfinish block, CancelTimer, GetCountdownValue and Start Timer have been added
[image]
extension link :
Summary
AIA:
Countdown_GSR_V2.aia (105.3 KB)
see the below screenshots:
[Screenshot_2022-04-29-18-44-49-56]
[Screenshot_2022-04-29-18-45-43-95]
If timer over or no timer set mean screen will be green in colour. Once timer started you cannot click that Start button.
[Screenshot_2022-04-29-19-48-05-85]
(So for from my side, I find no bugs. May be I am unnoticed. …
So I Am Here With My Second Extension : TimeTools
Special Thanks To @vknow360 For This Great Idea
Special Thanks To @help_cttricks For Making Get online time component
Introduction
It Helps You With Time , The Functions Which Take So Much Blocks To Complete can be done with just a Block.It Have 10 Blocks. You Can Also Get Online Time With It
You Can Suggest Me A Good Function To Implement
Blocks
GetOnlineTime_INDIA - This block will call the Online/internet time.Time region …
Here is an extension to format the time / duration (millis) in different ways:
→ [HH:mm:ss] → [days + HH:mm:ss], → [HH:mm] → [mm:ss] → [HH:mm:ss:S] → [HH:mm:ss:SS] → [HH:mm:ss:SSS] etc.
Version 1 (July 20, 2020):
TFormat.aix (5.5 KB)
Version 2 (Oct 20, 2021):
TFormat2.aix (5.7 KB)
New blocks
This is asked very often and always requires a lot of questions / answers and posts in the forum.
Hence this extension (some of it can also be implemented with the on-board methods):
Blocks
But…
2 Likes
Can u please share the blocks as i am still new here
test this
timerRecharge(1).aia (14.1 KB)
make sure user is not changing the system date and time.. If so you need to get date nd time from online
system
(system)
Closed
October 4, 2022, 12:21pm
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.