Android Open Source - Aether-s-Notebook-Android-Client Time Stamp






From Project

Back to project page Aether-s-Notebook-Android-Client.

License

The source code is released under:

GNU General Public License

If you think the Android project Aether-s-Notebook-Android-Client listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package aethers.notebook.core;
//from  ww  w.j a  va 2s  .com
import android.os.Parcel;
import android.os.Parcelable;

public class TimeStamp
implements Parcelable
{
    public static final Parcelable.Creator<TimeStamp> CREATOR =
        new Parcelable.Creator<TimeStamp>()
        {
            @Override
            public TimeStamp createFromParcel(Parcel source) 
            {
                return new TimeStamp(source);
            }

            @Override
            public TimeStamp[] newArray(int size) 
            {
                return new TimeStamp[size];
            }
        };

    private long systemTime;
    
    private String timezone;
    
    public TimeStamp() { }
    
    public TimeStamp(long systemTime, String timezone)
    {
        this.systemTime = systemTime;
        this.timezone = timezone;
    }
    
    private TimeStamp(Parcel in)
    {
        systemTime = in.readLong();
        timezone = in.readString();
    }
    
    public long getSystemTime()
    {
        return systemTime;
    }
    
    public void setSystemTime(long systemTime)
    {
        this.systemTime = systemTime;
    }
    
    public String getTimezone()
    {
        return timezone;
    }
    
    public void setTimezone(String timezone)
    {
        this.timezone = timezone;
    }
    
    @Override
    public int describeContents() 
    {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) 
    {
        dest.writeLong(systemTime);
        dest.writeString(timezone);        
    }
}




Java Source Code List

aethers.notebook.appender.managed.file.ConfigurationActivity.java
aethers.notebook.appender.managed.file.Configuration.java
aethers.notebook.appender.managed.file.FileAppender.java
aethers.notebook.appender.managed.uploader.ConfigurationActivity.java
aethers.notebook.appender.managed.uploader.Configuration.java
aethers.notebook.appender.managed.uploader.UploaderAppender.java
aethers.notebook.core.Action.java
aethers.notebook.core.AppenderServiceIdentifier.java
aethers.notebook.core.BootReceiver.java
aethers.notebook.core.ConfigurationTemplate.java
aethers.notebook.core.Configuration.java
aethers.notebook.core.CoreService.java
aethers.notebook.core.LoggerServiceIdentifier.java
aethers.notebook.core.TimeStamp.java
aethers.notebook.core.ui.ConfigurationActivity.java
aethers.notebook.core.ui.EditIntegerPreference.java
aethers.notebook.core.ui.IntegerPreferenceChangeListener.java
aethers.notebook.core.ui.NonPersistingButtonPreference.java
aethers.notebook.core.ui.PersistingButtonPreference.java
aethers.notebook.core.ui.filechooser.DirectoryChooser.java
aethers.notebook.core.ui.filechooser.FileChooser.java
aethers.notebook.core.ui.filechooser.FileListAdapter.java
aethers.notebook.logger.managed.PushLogger.java
aethers.notebook.logger.managed.celllocation.CellLocationLogger.java
aethers.notebook.logger.managed.dataconnectionstate.DataConnectionStateLogger.java
aethers.notebook.logger.managed.position.ConfigurationActivity.java
aethers.notebook.logger.managed.position.Configuration.java
aethers.notebook.logger.managed.position.PositionLogger.java
aethers.notebook.logger.managed.servicestate.ServiceStateLogger.java
aethers.notebook.logger.managed.signalstrength.SignalStrengthLogger.java
aethers.notebook.logger.managed.wifi.ConfigurationActivity.java
aethers.notebook.logger.managed.wifi.Configuration.java
aethers.notebook.logger.managed.wifi.WifiLogger.java
aethers.notebook.util.Logger.java