Showing "time ago" by fetching uploaded date/time

and i have did that without that extension too, by converting time instant to millis and then use math components to - that values , like time posted(converted to millis) - time now(converted to millis)

1 Like

any example .aia ? how does it shows?

i dont have any aia example now, but i will try to make that, meanwhile you can use time tools extension which is also doing that work perfectly

2 Likes

got it. im working on different for now but i’ll surely try it

1 Like

Why do you need an extension to do a simple math subtraction?
You only need to know the milliseconds of the instant the post was posted and the milliseconds of the current instant. Subtract the first from the second and there! You have how much time passed in milliseconds. Then check if that number is greater than 86400000, then it means days, if not divide it by 3600000 for hours, if not use 60000 for minutes, etc.
Then format it any way you want.

5 Likes

Time to restart my work on Kodular Utility Blocks

Hopefully, by today, I will add a procedure block.

3 Likes
9 Likes

Thanks to everyone who contributed on this thread. i really appreciate it. also a big thanks to @pavi2410 for providing example. i hope many people will find it helpful.

2 Likes

Bro i didn’t understand in some block.where you find epoch block & how can i do that with all list time & date.i think i can understanding you.sorry for poor english.

epoch is a input of procedure

image

can be used for

procedures_callreturn

3 Likes

Tnx a lot.how can do that procedure with airtable list

It is used like this

2 Likes

for me its showing 49 years ago for each time picked,

blocks - 2019-12-09T100458.165

What is the date you provided as input?

opps, i was using time picker to select time, its only giving time instant, i think its happening because of no date in this instant.

you can use like this,

blocks - 2019-12-09T101332.450

but for store time in airtable you have to store time of post with,

component_method (10)

2 Likes

As i have used this as exactly as you said, feel free to ask any question you have while implementing. @pavi2410 helped me a lot and i know some about this.

1 Like

This time format is ok??

The time format should be in mm/dd/yyyy hh:mm format where hh is in 0-23 range

1 Like

I think i can’t create this.facing eror


Time format