Trying to convert a code to use on a 32x16 LED Dot Matrix

Hi All,

I’m trying to convert the code below to use on a 32 x 16 Dot Matrix, but am not having much luck.
(DMD: http://www.freetronics.com.au/products/dot-matrix-display-32x16-red#.WAIt-uB97cd)

/*
* RetirementClock.ino
* countdown the days, hours and minutes till retirement.
*/

#include <Time.h>
#include <Wire.h>
#include <DS1307RTC.h>
#include <Adafruit_MCP23017.h>
#include <Adafruit_RGBLCDShield.h>
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();

// #defines the backlight color
#define BLUE 0x4

void setup () {
  Wire.begin();
     Serial.begin(9600);
    
   
   // set up the LCD's number of rows and columns: 
  lcd.begin(16, 2);
  lcd.setBacklight(BLUE);
  lcd.setCursor(0, 0);
  lcd.clear();
   
  
}

void loop () {
  
  setSyncProvider(RTC.get);
  time_t daysleft,retirementdate; // setup the fields needed.
       retirementdate = 2280614400L; // January 01, 2042
       daysleft = retirementdate - now(); // subtract todays date from the retirement date to get the days left.
     // Display the days left before retirement.      
     lcd.setCursor(0, 0);
     lcd.print("Days ");
     displayDaysDigits(daysleft / SECS_PER_DAY);
     
     // Display the hours left before midnight.
     lcd.setCursor(10, 0);
     lcd.print("Hrs ");
     displayTimeDigits(23 - hour());
     
     // Display the minutes left in a hour.
     lcd.setCursor(0, 1);
     lcd.print("Min ");
     displayTimeDigits(59 - minute());
     
     // Display the seconds left in a minute.
     lcd.setCursor(7, 1);
     lcd.print("Sec ");
     displayTimeDigits(59 - second());
     delay(1000);
   
}

void displayTimeDigits(int digits){
  // utility function for time display: displays leading 0.
   if(digits < 10)
    lcd.print('0');
    lcd.print(digits);
}

void displayDaysDigits(int digits){
  // utility function for days display: displays leading spaces.
   if(digits <= 9)
    {
    lcd.print("    ");
    lcd.print(digits);
    }
    else if(digits <= 99)
    {
    lcd.print("   ");
    lcd.print(digits);
    }
    else if(digits <= 999)
    {
    lcd.print("  ");
    lcd.print(digits);
    }
    else if(digits <= 99)
    {
    lcd.print(" ");
    lcd.print(digits);
    }
    else
    {
    lcd.print(digits);
    }
}

My first question is, I don’t understand how to adjust the date.
In the example above the date is set as:

 retirementdate = 2280614400L; // January 01, 2042

I’m using the Time Library but can’t find how to use the examples to generate the correct date. I want the date to be December 25, 2016.

Your guidance is appreciated.

Once I have that, I’ll further attempt to display it properly (I may be back with more questions)

Thankyou!

Not sure of the question. Does this help? http://www.epochconverter.com/

Legend!