I m wrking on a project, and I want to make a date variable with the gregorian calendar in goLang, I've searched about it, but i didn't found an answer here is what i want to do with in golang in a java type code
try {
final Calendar gc = new GregorianCalendar();
gc.setTime(simpleDateFormat.parse(callEndDateTime));
gc.add(Calendar.SECOND, -1 * duration);
callStartDateTime = simpleDateFormat.format(gc.getTime());
} catch (final ParseException parseException) {
LOGGER.error("Couldn't parse the given date: " + callEndDateTime, parseException);
callStartDateTime = null;
}
thanks for helping me!