Question: I need to make a function which will add to the beginning date 3 days and if it's 3 then it shows alert.

```
$beginDate = 2016-07-29 17:14:43 (this one is from sql table format)
$dateNow = date now

if $beginDate + 3 days (72h) is >= $dateNow then echo "It's been three days from..."

```

It seems to be simple but I have hard time to make it work with strtotime() and date() functions. How to code this in PHP?

Answer: 
you can try Smaf.tv, the free cross-platform JS SDK and command line tool, with which you can build and package TV apps with one code base for LG WebOS, Samsung Smart TV (Orsay) & Tizen, Android TV and Amazon Fire TV.

Disclaimer: I am part of the Smaf.tv team, but honestly I believe it fits your objective
If you already have an Android app, then it technically should already work with Android TV. There are a few [TV-specific things](https://developer.android.com/training/tv/start/start.html) you can do:

* Declare a Leanback Launcher intent. Add this to your main activity in the manifest:

```
<intent-filter>
    <action android:name="android.intent.action.MAIN" />
    <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> 
</intent-filter>

```
* Add a banner to your app's application tag:

```
<application
    android:banner="@drawable/banner" >

```
* Test it out to make sure any user interaction you have works with a DPAD / remote control.

You can build and run on a device or in an emulator if you want to double-check. There's plenty more in the docs linked above if you want to learn more.