X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fthings-manager%2Fsdk%2Fjava%2Fsrc%2Forg%2Fiotivity%2Fservice%2Ftm%2FTime.java;h=7ae50aee033b7d9029974aab63e6e78623243411;hb=17c68b2fd1e74586f85e552eeab4e32dc121f8a0;hp=dc28d8bf6fd4ae4870f77fb74ccbe653f3a06443;hpb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/things-manager/sdk/java/src/org/iotivity/service/tm/Time.java b/service/things-manager/sdk/java/src/org/iotivity/service/tm/Time.java index dc28d8b..7ae50ae 100644 --- a/service/things-manager/sdk/java/src/org/iotivity/service/tm/Time.java +++ b/service/things-manager/sdk/java/src/org/iotivity/service/tm/Time.java @@ -1,12 +1,31 @@ +/* ***************************************************************** + * + * Copyright 2015 Samsung Electronics All Rights Reserved. + * + * + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + ******************************************************************/ + package org.iotivity.service.tm; import android.util.Log; /** - * This class provides time-related information used for - * scheduled/recursive group action features. Along with time-related - * variables, it also provides various useful functionality including - * translating time to second unit + * This class provides time-related information used for scheduled/recursive + * group action features. Along with time-related variables, it also provides + * various useful functionality including translating time to second unit */ public class Time { @@ -44,7 +63,6 @@ public class Time { * Second to be set * @param dayOfTheWeek * Day of the week to be set - * */ public void setTime(int year, int month, int day, int hour, int min, int sec, int dayOfTheWeek) { @@ -96,7 +114,6 @@ public class Time { * * @param seconds * time delay in seconds - * */ public void setDelay(long seconds) { if (mType != ActionSetType.NONE) { @@ -108,7 +125,6 @@ public class Time { * Get absolute time in seconds. * * @return long - Absolute time in seconds. - * */ public long getSecAbsTime() { long interval; @@ -124,7 +140,6 @@ public class Time { * Get the type of ActionSet. * * @return ActionSetType - Type of ActionSet. - * */ public ActionSetType getType() { return mType; @@ -134,7 +149,6 @@ public class Time { * Get the time delay in seconds set in the ActionSet. * * @return long - Delay in seconds. - * */ public long getDelay() { return mDelay;