Calculate Hours Minutes Sec in Zoho Creator Using Deluge
- check_In = "8-Aug-2023 10:00:00".toDateTime().toLong();
- checkout = "8-Aug-2023 18:00:00".toDateTime().toLong();
- //difference = start.timeBetween(end);
- check_In = "8-Aug-2023 17:56:50".toDateTime().toLong();
- checkout = "8-Aug-2023 18:00:00".toDateTime().toLong();
- v_UnixSeconds = checkout - check_In;
- info v_UnixSeconds;
- info v_UnixSeconds;
- v_Days = floor((((v_UnixSeconds / 1000) / 60) / 60) / 24);
- v_Days = floor(v_UnixSeconds / 86400000);
- info v_Days;
- info v_UnixSeconds;
- v_UnixSeconds = v_UnixSeconds - v_Days * 1000 * 60 * 60 * 24;
- info v_UnixSeconds;
- v_Hours = floor(((v_UnixSeconds / 1000) / 60) / 60);
- info v_Hours;
- v_UnixSeconds = v_UnixSeconds - v_Hours * 1000 * 60 * 60;
- v_Minutes = floor((v_UnixSeconds / 1000) / 60);
- info v_Minutes;
- v_UnixSeconds = v_UnixSeconds - v_Minutes * 1000 * 60;
- v_Seconds = floor(v_UnixSeconds / 1000);
- info v_Seconds;
- //
- v_DayGrammar = if(v_Days == 1,"DAY","DAYS");
- v_HourGrammar = if(v_Hours == 1,"HR","HRS");
- v_MinGrammar = if(v_Minutes == 1,"MIN","MINS");
- v_SecGrammar = if(v_Seconds == 1,"SEC","SECS");
- //
- info v_Days + " " + v_DayGrammar + ", " + v_Hours + " " + v_HourGrammar + ", " + v_Minutes + " " + v_MinGrammar + ", " + v_Seconds + " " + v_SecGrammar;
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Zoho Orchestly Resources
Zoho Creator Resources
Zoho WorkDrive Resources
Zoho Campaigns Resources
Zoho CRM Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.