参考博客:Android开发,Toast重复显示(显示时间过长)解决方法 package com.dr.app.drseamoniter.toast; import android.content.Context; import android.os.Handler; import android.widget.Toast; /** * Created by Administrator on 15-9-14. */ public class MessageToast { private stat
xampp无法设置默认时间,修改了时间还是无效 [Date] ; Defines the default timezone used by the date functions ; http://php.net/date.timezone date.timezone =Asia/Hong_Kong 重启阿帕奇无效 晚上一直折腾,除非自己设置时区,要不一直都是不能起效果 后面,把php.ini修改后复制一份到xampp下面的cgi-bin目录,重启阿帕奇,终于生效了.
procedure TMainFrm.Timer1Timer(Sender: TObject); var systemtime:Tsystemtime; dt:TDateTime; begin L_DateTime.Caption:=FormatDateTime('YYYY-MM-DD HH:SS',Now); //显示当前时间 MainFrm.Caption:=IntToStr(Timer1.Tag); timer1.tag:=timer1.tag+1; if Timer1