Example usage for com.liferay.portal.kernel.util Time getShortTimestamp

List of usage examples for com.liferay.portal.kernel.util Time getShortTimestamp

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util Time getShortTimestamp.

Prototype

public static String getShortTimestamp() 

Source Link

Usage

From source file:com.liferay.exportimport.lar.ExportImportHelperImpl.java

License:Open Source License

@Override
public String getPortletExportFileName(Portlet portlet) {
    return StringBundler.concat(StringUtil.replace(portlet.getDisplayName(), ' ', '_'), "-",
            Time.getShortTimestamp(), ".portlet.lar");
}