Java Code Examples for com.ruoyi.common.utils.DateUtils#parseDateToStr()

The following examples show how to use com.ruoyi.common.utils.DateUtils#parseDateToStr() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SysUserOnlineServiceImpl.java    From supplierShop with MIT License 5 votes vote down vote up
/**
 * 查询会话集合
 * 
 * @param expiredDate 失效日期
 */
@Override
public List<SysUserOnline> selectOnlineByExpired(Date expiredDate)
{
    String lastAccessTime = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, expiredDate);
    return userOnlineDao.selectOnlineByExpired(lastAccessTime);
}
 
Example 2
Source File: SysUserOnlineServiceImpl.java    From ruoyiplus with MIT License 5 votes vote down vote up
/**
 * 查询会话集合
 * 
 * @param expiredDate 失效日期
 */
@Override
public List<SysUserOnline> selectOnlineByExpired(Date expiredDate)
{
    String lastAccessTime = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, expiredDate);
    return userOnlineDao.selectOnlineByExpired(lastAccessTime);
}
 
Example 3
Source File: Jvm.java    From supplierShop with MIT License 4 votes vote down vote up
/**
 * JDK启动时间
 */
public String getStartTime()
{
    return DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, DateUtils.getServerStartDate());
}
 
Example 4
Source File: Jvm.java    From RuoYi-Vue with MIT License 4 votes vote down vote up
/**
 * JDK启动时间
 */
public String getStartTime()
{
    return DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, DateUtils.getServerStartDate());
}
 
Example 5
Source File: Jvm.java    From ruoyiplus with MIT License 4 votes vote down vote up
/**
 * JDK启动时间
 */
public String getStartTime()
{
    return DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS, DateUtils.getServerStartDate());
}