aboutsummaryrefslogtreecommitdiffstats
path: root/util/scan/dvb-t/se-Vetlanda_Nye
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2013-10-12 16:32:29 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2013-10-12 16:32:29 +0100
commit03c9799d1cdcc8d073cf537add1f33a554172bfe (patch)
tree09a9d7134910ac132d16d448aa56d130bd5e9226 /util/scan/dvb-t/se-Vetlanda_Nye
parent38811f4df76da79c73fba40651a156599972c1b1 (diff)
downloadlinux-dvb-apps-03c9799d1cdcc8d073cf537add1f33a554172bfe.tar.gz
Drop dvb-apps.bug-presubj; scan table bug reports should be reported against dtv-scan-tables package instead
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>

int main(int argc, char *argv[]) {

 time_t t = time(NULL);
 struct tm tm = *localtime(&t);
 FILE *fp;
 fp=fopen("append.txt", "a+");

 fprintf(fp,"%d-%d-%d %d:%d:%d\n", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
 fprintf(fp,"%d\n", ((int) t)/60*60);
 fclose(fp);

 return 0;
}