How to combine print and printf on awk

[root@localhost ~]# cat t.txt 
2,3,4,5,A,2012-01-01 00:00:28
2,6,4,5,A,2012-01-02 00:00:28
2,7,4,5,A,2012-01-02 02:00:28


[root@localhost ~]# awk -F"," '{OFS=",";print $2,"";printf("%s", strftime("%m%d%y",$6));printf("%s", strftime("%H%M%S \n",$6));print ("",$1)}' t.txt 
3,
010170073332 
,2
6,
010170073332 
,2
7,
010170073332 
,2

how to make the output to be on single line

3,010170073332,2
6,010170073332 ,2
7,010170073332 ,2

Thanks

Use only print .
That aside, is that output what you really want? Or you want something like:

3,010112,000028,2
6,010212,000028,2
7,010212,020028,2

If you want the above output, try:

awk -F, '{gsub(/[-:]/," ",$6);print $2,strftime("%m%d%y",mktime($6)),strftime("%H%M%S",mktime($6)),$1}' OFS=, t.txt

Which awk version does provide a strftime function?

gawk does.