func (m *M1000e) newDatetimeCfg(ntp *cfgresources.Ntp) DatetimeParams {
	if ntp.Timezone == "" {
		msg := "ntp resource parameter timezone required but not declared"
		err := errors.New(msg)
		m.log.V(0).Error(err, msg, "step", "apply-ntp-cfg")
	}
	if ntp.Server1 == "" {
		msg := "ntp resource parameter server1 required but not declared."
		err := errors.New(msg)
		m.log.V(0).Error(err, msg, "step", "apply-ntp-cfg")
	}
	dateTime := DatetimeParams{
		SessionToken:          m.SessionToken,
		NtpEnable:             ntp.Enable,
		NtpServer1:            ntp.Server1,
		NtpServer2:            ntp.Server2,
		NtpServer3:            ntp.Server3,
		DateTimeChanged:       true,
		CmcTimeTimezoneString: ntp.Timezone,
		TzChanged:             true,
	}
	return dateTime
}
func (m *M1000e) newSslCfg(ssl *cfgresources.Ssl) (MFormParams map[string]string) {

//params for the multipart form.
MformParams := make(map[string]string)

MformParams["ST2"] = m.SessionToken
MformParams["caller"] = ""
MformParams["pageCode"] = ""
MformParams["pageId"] = "2"
MformParams["pageName"] = ""

return MformParams
}
Given the Ntp resource,
populate the required Datetime params
package m1000e
import (
	"errors"
	"fmt"
	"github.com/bmc-toolbox/bmclib/cfgresources"
)