software-RTC adapting the AVR-swRTC to SAMD21

So finally after testing it I can confirm

the AVR-board swRTC-library function

swRTC::getTimestamp()

used like in this demo sketch

/* This file is part of swRTC library.
   Please check the README file and the notes
   inside the swRTC.h file to get more info
   
   This example will send different infos every second
   to the computer through the serial port.
   
   Written by Leonardo Miliani <leonardo AT leonardomiliani DOT com>

   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public
   License as published by the Free Software Foundation; either
    version 3.0 of the License, or (at your option) any later version.
*/

#include <swRTC.h>
swRTC rtc; //create a new istance of the lib

void setup() {
	rtc.stopRTC(); //stop the RTC
	rtc.setTime(0,0,0); //set the time here
	rtc.setDate(1,1,2016); //set the date here
	rtc.startRTC(); //start the RTC
	Serial.begin(115200); //choose the serial speed here
	//delay(2000); //delay to let the user opens the serial monitor
}

void loop() {
    Serial.print("Timestamp: ");
    Serial.println(rtc.getTimestamp(), DEC);
    delay(1000);
}

adjusted to 1.1.2016 prints

21:10:56.706 -> Timestamp: 1451606400
21:10:57.708 -> Timestamp: 1451606401
21:10:58.710 -> Timestamp: 1451606402
21:10:59.692 -> Timestamp: 1451606403
21:11:00.714 -> Timestamp: 1451606404
21:11:01.694 -> Timestamp: 1451606405
21:11:02.688 -> Timestamp: 1451606406

which are unix-time = epoc-time = seconds since 1.1.1970 0:00 am

is the same as in the demofile

/*
  Epoch time example for Arduino Zero and MKR1000

  Demonstrates how to set time using epoch for the Arduino Zero and MKR1000

  This example code is in the public domain

  created by Sandeep Mistry <s.mistry@arduino.cc>
  31 Dec 2015
  modified
  18 Feb 2016
*/

#include <RTCZero.h>

/* Create an rtc object */
RTCZero rtc;

void setup() {
  Serial.begin(115200);

  rtc.begin(); // initialize RTC

  rtc.setEpoch(1451606400); // Jan 1, 2016
}

void loop() {
  Serial.print("Unix time = ");
  Serial.println(rtc.getEpoch());

  delay(1000);
}

which needs two seconds until the COM-port is established after reset

21:19:18.149 -> Unix time = 1451606402
21:19:19.174 -> Unix time = 1451606403
21:19:20.154 -> Unix time = 1451606404
21:19:21.172 -> Unix time = 1451606405
21:19:22.158 -> Unix time = 1451606406
21:19:23.161 -> Unix time = 1451606407
21:19:24.163 -> Unix time = 1451606408
21:19:25.210 -> Unix time = 1451606409

question solved. Thank you juraj for pointing me to the RTCZero.h-library
best regards Stefan